Skip to main content

SecondaryAxisXCollection.GetAxisByName(String) Method

Gets an X-axis within a secondary axes collection by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public SecondaryAxisX GetAxisByName(
    string name
)

Parameters

Name Type Description
name String

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

Returns

Type Description
SecondaryAxisX

A SecondaryAxisX object that represents the secondary X-axis with the specified name.

Remarks

Use the GetAxisByName method, to obtain a secondary X-axis within a secondary axes collection by its name.

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

See Also