XYDiagram2D.FindAxisXByName(String) Method

Gets an X-axis within the chart's axis collection by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

public Axis2D FindAxisXByName(
    string name
)
Public Function FindAxisXByName(
    name As String
) As Axis2D

Parameters

Name Type Description
name String

A String which specifies the name of the X-axis to find.

Returns

Type Description
Axis2D

An Axis2D object that represents the X-axis with the specified name.

Remarks

Note that this method finds only the first occurrence of an X-axis with the specified name. If no element with the specified name is found, then this method returns null (Nothing in Visual Basic).

See Also