Back to Devexpress

ChartCollectionBase.IndexOf(ChartElement) Method

corelibraries-devexpress-dot-xtracharts-dot-chartcollectionbase-dot-indexof-x28-devexpress-dot-xtracharts-dot-chartelement-x29.md

latest1.6 KB
Original Source

ChartCollectionBase.IndexOf(ChartElement) Method

Returns the specified object’s position within the collection.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public int IndexOf(
    ChartElement item
)
vb
Public Function IndexOf(
    item As ChartElement
) As Integer

Parameters

NameTypeDescription
itemChartElement

A ChartElement object to locate in the collection.

|

Returns

TypeDescription
Int32

A zero-based integer which represents the object’s position within the collection. -1 if the object doesn’t belong to the collection.

|

Remarks

This method scans the collection starting from the first element and returns the index of the first matching element found.

See Also

ChartCollectionBase Class

ChartCollectionBase Members

DevExpress.XtraCharts Namespace