Skip to main content

TreeDataGridRowEventArgs Class

Definition

Assembly:Avalonia.Controls.TreeDataGrid
Package:Avalonia.Controls.TreeDataGrid

Provides data for events related to row operations in a Avalonia.Controls.TreeDataGrid control.

public class TreeDataGridRowEventArgs

Inheritance: object -> TreeDataGridRowEventArgs

Remarks

This class is used in events such as Avalonia.Controls.TreeDataGrid.RowPrepared and Avalonia.Controls.TreeDataGrid.RowClearing to provide information about the row that triggered the event.

Constructors

NameDescription
TreeDataGridRowEventArgsInitializes a new instance of the Avalonia.Controls.TreeDataGridRowEventArgs class with the specified row and row index.

TreeDataGridRowEventArgs Constructor

Initializes a new instance of the Avalonia.Controls.TreeDataGridRowEventArgs class with the specified row and row index.

public TreeDataGridRowEventArgs(Avalonia.Controls.Primitives.TreeDataGridRow row, int rowIndex)

Parameters

row Avalonia.Controls.Primitives.TreeDataGridRow

The row control that triggered the event.

rowIndex int

The index of the row in the TreeDataGrid.

Properties

NameDescription
RowGets the row control that triggered the event.
RowIndexGets the index of the row that triggered the event.

Row Property

Gets the row control that triggered the event.

public Avalonia.Controls.Primitives.TreeDataGridRow Row { get; set; }

Value

A Avalonia.Controls.Primitives.TreeDataGridRow that represents the row in the TreeDataGrid.

RowIndex Property

Gets the index of the row that triggered the event.

public int RowIndex { get; set; }

Value

The zero-based index of the row in the TreeDataGrid.