Skip to main content

ChartCollectionBase.GetElementByIndex(Int32) Method

Gets a chart element within the collection by its index.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v23.2.dll

NuGet Package: DevExpress.Charts

Declaration

public ChartElement GetElementByIndex(
    int index
)

Parameters

Name Type Description
index Int32

A zero-based integer specifying the desired item’s position within the collection. If it’s negative or exceeds the last available index, an exception is raised.

Returns

Type Description
ChartElement

A ChartElement object which represents the chart element at the specified position.

See Also