HypernovaDesktop Components · docs
Binarymission
WinFormsTree List View › BinaryTreeListViewCell

BinaryTreeListViewCell

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.TreeControls

A specialized DataGridViewTextBoxCell object that provides functionality a Tree and List view drawing cell.

public class BinaryTreeListViewCell : DataGridViewTextBoxCell

Inherits from / implements: DataGridViewTextBoxCell

Members at a glance

BinaryTreeListViewCellConstructs a new instance of BinaryTreeListView class.
OnKeyDownHandles a key pressed while this cell has the focus, so that the keyboard can expand and collapse a node as well as the mouse.
OnLeaveCalled as the focus leaves this cell, which is where the node it belongs to drops its transient hover state.
OnMouseDownRaises the MouseDown event. BinaryTreeListViewCell overrides it so the control's own handling runs alongside the base behavior.
OnMouseUpRaises the MouseUp event. BinaryTreeListViewCell overrides it so the control's own handling runs alongside the base behavior.
PaintPaints this cell. The base implementation draws the standard cell; this override adds the parts specific to BinaryTreeListViewCell.

Constructors

BinaryTreeListViewCell

public BinaryTreeListViewCell()

Constructs a new instance of BinaryTreeListView class.

Methods

OnKeyDown

protected override void OnKeyDown(KeyEventArgs e, int rowIndex)

Handles a key pressed while this cell has the focus, so that the keyboard can expand and collapse a node as well as the mouse.

e
The key that was pressed.
rowIndex
The row this cell belongs to.

OnLeave

protected override void OnLeave(int rowIndex, bool throughMouseClick)

Called as the focus leaves this cell, which is where the node it belongs to drops its transient hover state.

rowIndex
The row this cell belongs to.
throughMouseClick
true when the focus moved because of a click.

OnMouseDown

protected override void OnMouseDown(DataGridViewCellMouseEventArgs e)

Raises the MouseDown event. BinaryTreeListViewCell overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseUp

protected override void OnMouseUp(DataGridViewCellMouseEventArgs e)

Raises the MouseUp event. BinaryTreeListViewCell overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

Paint

protected override void Paint (Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts)

Paints this cell. The base implementation draws the standard cell; this override adds the parts specific to BinaryTreeListViewCell.