IIndexSelectableChart Interface
Definition
Selection contract for chart components that select data points by index.
public interface IIndexSelectableChart
Methods
| Name | Description |
|---|---|
| IsDataPointSelected | Checks if the data point at the given index is currently selected. |
| TrySelectDataPoint | Attempts to select a data point at the given index. |
IsDataPointSelected Method
Checks if the data point at the given index is currently selected.
public bool IsDataPointSelected(int index)
Parameters
index int
The index to check.
Returns
bool
True if selected.
TrySelectDataPoint Method
Attempts to select a data point at the given index.
public bool TrySelectDataPoint(int index)
Parameters
index int
The index of the data point.
Returns
bool
True if the selection state changed.
Properties
| Name | Description |
|---|---|
| SelectedIndex | Gets the index of the currently selected data point (-1 if none). |
| SelectedIndexes | Gets the collection of all currently selected indexes. |
SelectedIndex Property
Gets the index of the currently selected data point (-1 if none).
public int SelectedIndex { get; set; }
SelectedIndexes Property
Gets the collection of all currently selected indexes.
public System.Collections.Generic.IReadOnlyCollection<int> SelectedIndexes { get; set; }