Skip to main content

TrendLineCollection.GetTrendLineByName(String) Method

Gets a Trend Line within the collection by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public TrendLine GetTrendLineByName(
    string name
)

Parameters

Name Type Description
name String

A String which specifies the name of the Trend Line to find.

Returns

Type Description
TrendLine

A TrendLine object that represents the Trend Line with the specified name.

Remarks

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

See Also