ITreeDataGridCellSelection Interface
Definition
Provides non-generic access to cell selection state.
public interface ITreeDataGridCellSelection
Remarks
Avalonia.Controls.Selection.TreeDataGridCellSelectionModel<T> is generic, but the Avalonia.Controls.TreeDataGrid and its automation peers need non-generic access to the cell selection state. Custom cell selection models should implement this interface in order to expose their selection to UI Automation clients such as screen readers.
This interface is experimental: it is exposed to allow custom selection models to be implemented, but it may be changed or removed in a future release.
Methods
| Name | Description |
|---|---|
| IsSelected | Determines whether the specified cell is selected. |
IsSelected Method
Determines whether the specified cell is selected.
public bool IsSelected(Avalonia.Controls.CellIndex index)
Parameters
index Avalonia.Controls.CellIndex
The index of the cell.
Returns
bool
true if the cell is selected; otherwise false.
Properties
| Name | Description |
|---|---|
| SelectedIndex | Gets or sets the index of the selected cell. Setting this value clears the existing selection and selects the single specified cell. |
| SelectedIndexes | Gets the indexes of the selected cells. |
SelectedIndex Property
Gets or sets the index of the selected cell. Setting this value clears the existing selection and selects the single specified cell.
public Avalonia.Controls.CellIndex SelectedIndex { get; set; }
SelectedIndexes Property
Gets the indexes of the selected cells.
public System.Collections.Generic.IReadOnlyList<Avalonia.Controls.CellIndex> SelectedIndexes { get; set; }