WinForms › Tree List View › BinaryTreeListViewNumericExtendedTextBoxCell
BinaryTreeListViewNumericExtendedTextBoxCell
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.TreeControls
A cell of a BinaryTreeListViewNumericExtendedTextBoxColumn: it shows its value as text and is edited in a
BinaryNumericExtendedText.
public class BinaryTreeListViewNumericExtendedTextBoxCell : DataGridViewTextBoxCell
Inherits from / implements: DataGridViewTextBoxCell
Remarks
The column creates its cells from its template; an application does not normally create one. The editor takes its border settings from the column, not from the cell.
Members at a glance
| Constructors | |
|---|---|
BinaryTreeListViewNumericExtendedTextBoxCell | Creates a cell. The column creates its cells from its template, so an application rarely calls this. |
| Properties | |
DefaultNewRowValue | Gets the value a cell starts with in the grid's row for new entries. |
EditType | Gets the type of the editor the grid shows while a cell of this column is edited. |
| Methods | |
InitializeEditingControl | Prepares the grid's editor for this cell as an edit starts, filling it with the cell's value. |
Constructors
BinaryTreeListViewNumericExtendedTextBoxCell
public BinaryTreeListViewNumericExtendedTextBoxCell() : base()
Creates a cell. The column creates its cells from its template, so an application rarely calls this.
Properties
DefaultNewRowValue
public override object DefaultNewRowValue
Gets the value a cell starts with in the grid's row for new entries.
- Value
- The text of the editor this cell last prepared, or an empty string before the first edit. A tree list view has no row for new entries, so this is rarely used.
EditType
public override Type EditType
Gets the type of the editor the grid shows while a cell of this column is edited.
- Value
- An internal type based on
BinaryNumericExtendedText; the grid creates one and reuses it.
Methods
InitializeEditingControl
public override void InitializeEditingControl(int rowIndex, object initialFormattedValue, DataGridViewCellStyle dataGridViewCellStyle)
Prepares the grid's editor for this cell as an edit starts, filling it with the cell's value.
Parameters
rowIndex- The grid row of the cell being edited.
initialFormattedValue- The text the editor starts with: the cell's formatted value.
dataGridViewCellStyle- The cell's style. The editor's border settings come from the column.