Skip to main content

ChartElementNamedCollection.GetElementByName(String) Method

Gets an element within the collection by its name.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

public ChartElementNamed GetElementByName(
    string name
)

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).

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetElementByName(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also