Back to Devexpress

DataSourceKey.Index Property

maui-devexpress-dot-maui-dot-charts-dot-datasourcekey-c44216de.md

latest1.6 KB
Original Source

DataSourceKey.Index Property

Stores the information of a point location within the chart.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public int Index { get; }

Property Value

TypeDescription
Int32

The information of a point location within the chart.

|

Example

In this example, a hint with preset options appears when a user taps a bubble.

  1. Use the FilmData object collection as the data source for the chart to show the highest grossing films as bubbles.

  2. Subscribe to the SelectionChanged event and enable hints for the chart.

  3. In the event handler, use the DataSourceKey.DataObject property to access an object that corresponds with the selected bubble and cast it to the type of the data source object ( FilmData ). Call the ShowHint method to show a hint for the selected bubble and specify the tooltip text pattern.

See Also

DataSourceKey Class

DataSourceKey Members

DevExpress.Maui.Charts Namespace