TreeDataGridColumnReorderedEventArgs Class
Definition
Provides data for the Avalonia.Controls.TreeDataGrid.ColumnReordered event.
public class TreeDataGridColumnReorderedEventArgs
Remarks
This event is raised after the user has moved a column to a new position by dragging its header.
Constructors
| Name | Description |
|---|---|
| TreeDataGridColumnReorderedEventArgs | Initializes a new instance of the Avalonia.Controls.TreeDataGridColumnReorderedEventArgs class. |
TreeDataGridColumnReorderedEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.TreeDataGridColumnReorderedEventArgs class.
public TreeDataGridColumnReorderedEventArgs(Avalonia.Controls.TreeDataGridColumn column, int oldIndex, int newIndex)
Parameters
column Avalonia.Controls.TreeDataGridColumn
The column that was reordered.
oldIndex int
The index of the column before the move.
newIndex int
The index of the column after the move.
Properties
| Name | Description |
|---|---|
| Column | Gets the column that was reordered. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| NewIndex | Gets the index of the column in the columns collection after the move. |
| OldIndex | Gets the index of the column in the columns collection before the move. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets or sets the source object that raised the routed event. Inherited from RoutedEventArgs. |
Column Property
Gets the column that was reordered.
public Avalonia.Controls.TreeDataGridColumn Column { get; set; }
NewIndex Property
Gets the index of the column in the columns collection after the move.
public int NewIndex { get; set; }
OldIndex Property
Gets the index of the column in the columns collection before the move.
public int OldIndex { get; set; }