Skip to main content

TreeDataGridCellEventArgs Class

Definition

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

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

public class TreeDataGridCellEventArgs

Inheritance: object -> TreeDataGridCellEventArgs

Remarks

This class is used in events such as Avalonia.Controls.TreeDataGrid.CellPrepared, Avalonia.Controls.TreeDataGrid.CellClearing, and Avalonia.Controls.TreeDataGrid.CellValueChanged to provide information about the cell that triggered the event.

Constructors

NameDescription
TreeDataGridCellEventArgsInitializes a new instance of the Avalonia.Controls.TreeDataGridCellEventArgs class with the specified cell, column index, and row index.

TreeDataGridCellEventArgs Constructor

Initializes a new instance of the Avalonia.Controls.TreeDataGridCellEventArgs class with the specified cell, column index, and row index.

public TreeDataGridCellEventArgs(Avalonia.Controls.Control cell, int columnIndex, int rowIndex)

Parameters

cell Avalonia.Controls.Control

The cell control that triggered the event.

columnIndex int

The index of the column that contains the cell.

rowIndex int

The index of the row that contains the cell.

Properties

NameDescription
CellGets the cell control that triggered the event.
ColumnIndexGets the index of the column that contains the cell.
RowIndexGets the index of the row that contains the cell.

Cell Property

Gets the cell control that triggered the event.

public Avalonia.Controls.Control Cell { get; set; }

Value

A Avalonia.Controls.Control that represents the cell in the TreeDataGrid.

ColumnIndex Property

Gets the index of the column that contains the cell.

public int ColumnIndex { get; set; }

Value

The zero-based index of the column.

RowIndex Property

Gets the index of the row that contains the cell.

public int RowIndex { get; set; }

Value

The zero-based index of the row.