Back to Devexpress

ChartCollectionBase.GetElementByIndex(Int32) Method

corelibraries-devexpress-dot-xtracharts-dot-chartcollectionbase-dot-getelementbyindex-x28-system-dot-int32-x29.md

latest1.5 KB
Original Source

ChartCollectionBase.GetElementByIndex(Int32) Method

Gets a chart element within the collection by its index.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public ChartElement GetElementByIndex(
    int index
)
vb
Public Function GetElementByIndex(
    index As Integer
) As ChartElement

Parameters

NameTypeDescription
indexInt32

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

TypeDescription
ChartElement

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

|

See Also

ChartCollectionBase Class

ChartCollectionBase Members

DevExpress.XtraCharts Namespace