Back to Devexpress

SwiftPlotDiagramSecondaryAxisXCollection.GetAxisByName(String) Method

corelibraries-devexpress-dot-xtracharts-dot-swiftplotdiagramsecondaryaxisxcollection-dot-getaxisbyname-x28-system-dot-string-x29.md

latest2.7 KB
Original Source

SwiftPlotDiagramSecondaryAxisXCollection.GetAxisByName(String) Method

Gets an X-axis within a secondary axes collection of the Swift Plot by its name.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public SwiftPlotDiagramSecondaryAxisX GetAxisByName(
    string name
)
vb
Public Function GetAxisByName(
    name As String
) As SwiftPlotDiagramSecondaryAxisX

Parameters

NameTypeDescription
nameString

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

|

Returns

TypeDescription
SwiftPlotDiagramSecondaryAxisX

A SwiftPlotDiagramSecondaryAxisX object that represents the secondary Y-axis with the specified name.

|

Remarks

Use the GetAxisByName method, to obtain a secondary X-axis within a secondary axes collection of the Swift Plot or Swift Point series by the axis 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

Swift Plot Series View

Primary and Secondary Axes

SwiftPlotDiagramSecondaryAxisXCollection Class

SwiftPlotDiagramSecondaryAxisXCollection Members

DevExpress.XtraCharts Namespace