Back to Devexpress

SwiftPlotDiagramSecondaryAxisYCollection.GetAxisByName(String) Method

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

latest2.6 KB
Original Source

SwiftPlotDiagramSecondaryAxisYCollection.GetAxisByName(String) Method

Gets a Y-axis within a secondary axes collection of the Swift Plot and Swift Point charts by the axis name.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Parameters

NameTypeDescription
nameString

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

|

Returns

TypeDescription
SwiftPlotDiagramSecondaryAxisY

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

|

Remarks

Use the GetAxisByName method, to obtain a secondary Y-axis within a secondary axes collection.

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

SwiftPlotDiagramSecondaryAxisYCollection Class

SwiftPlotDiagramSecondaryAxisYCollection Members

DevExpress.XtraCharts Namespace