Skip to main content

TreeDataGridColumnReorderedEventArgs Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid
public class TreeDataGridColumnReorderedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> TreeDataGridColumnReorderedEventArgs

Remarks

This event is raised after the user has moved a column to a new position by dragging its header.

Constructors

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

NameDescription
ColumnGets the column that was reordered.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
NewIndexGets the index of the column in the columns collection after the move.
OldIndexGets the index of the column in the columns collection before the move.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets 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; }