ChartElementNamedCollection.GetElementByName(String) Method

Gets an element within the collection by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.2.dll

Declaration

public ChartElementNamed GetElementByName(
    string name
)
Public Function GetElementByName(
    name As String
) As ChartElementNamed

Parameters

Name Type Description
name String

A String which specifies the name of the element to find.

Returns

Type Description
ChartElementNamed

A ChartElementNamed object that represents the element with the specified name.

Remarks

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