TTMSFNCTreeViewColumn Class
Defines the display properties, text alignment, appearance, sorting, filtering, and editor settings for a single tree view column.
API unit family: TMSFNCTreeViewData
Inherits from: TCollectionItem
Syntax
TTMSFNCTreeViewColumn = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| BottomFill | Background fill for the bottom header row of this column. |
| BottomFont | Text font for the bottom header row of this column. |
| BottomStroke | Border stroke for the bottom header row of this column. |
| CustomEditor | True activates a custom editor supplied by the OnGetCellEditor event. Default: False. |
| DBKey | Database key used to map this column to a dataset field when a database adapter is active. |
| DataBoolean | User-defined Boolean for storing application data on this column. |
| DataInteger | User-defined integer for storing application data on this column. |
| DataObject | User-defined object reference for storing application data on this column. |
| DataPointer | User-defined pointer for storing arbitrary application data on this column. |
| DataString | User-defined string for storing application data on this column. |
| DisabledFontColor | Cell text color when the node is disabled. Default: gcSilver. |
| DisabledTitleFontColor | Title text color when the node is disabled. Default: gcSilver. |
| EditorItems | Drop-down list items shown when EditorType is tcetComboBox. |
| EditorType | Editor control shown when the user edits a cell in this column. Default: tcetNone. |
| Expandable | True shows an expand/collapse button on the column header so the column can be collapsed. Default: False. |
| Expanded | True shows column cell content; False collapses the column to show only its header. Default: True. |
| ExpandingButtonSize | Size of the expand/collapse button on the column header in logical pixels. |
| Fill | Background fill for cells in this column. |
| Filtering | Filter settings that control whether and how this column exposes a filter drop-down. |
| Font | Text font for cells in this column. |
| HTMLTemplate | HTML template string used to render cell content; when non-empty, overrides plain text rendering. |
| HorizontalTextAlign | Horizontal alignment of cell text in this column. Default: gtaLeading. |
| MinimumWidth | Minimum column width in logical pixels; resize operations cannot reduce the column below this value. |
| Name | Programmatic identifier for this column; use FindColumnByName to look it up by name. |
| SelectedFontColor | Cell text color when the node is selected. Default: gcWhite. |
| SelectedTitleFontColor | Title text color when the node is selected. Default: gcWhite. |
| SortKind | Current sort-indicator state shown in the column header. Default: nskNone. |
| Sorting | Sorting mode for this column; determines how header clicks sort nodes. Default: tcsNone. |
| Stroke | Border stroke for cells in this column. |
| Tag | User-defined integer for application use. Default: 0. |
| Text | Header text displayed in the column's top header row. |
| TitleFont | Font used for title text in extended-mode rows. |
| TitleHorizontalTextAlign | Horizontal alignment of title text in extended-mode rows. Default: gtaLeading. |
| TitleTrimming | Text trimming applied to title text that does not fit in the title row. Default: gttNone. |
| TitleVerticalTextAlign | Vertical alignment of title text in extended-mode rows. Default: gtaCenter. |
| TitleWordWrapping | True enables word wrapping for title text in extended-mode rows. Default: False. |
| TopFill | Background fill for the top header row of this column. |
| TopFont | Text font for the top header row of this column. |
| TopStroke | Border stroke for the top header row of this column. |
| Trimming | Text trimming style applied to cell text that does not fit the column width. Default: gttNone. |
| UseDefaultAppearance | True inherits fill, stroke, and font from the tree view's default column appearance. Default: True. |
| VerticalTextAlign | Vertical alignment of cell text in this column. Default: gtaCenter. |
| Visible | True shows this column; False hides it. Default: True. |
| Width | Column width in logical pixels. |
| WordWrapping | True enables word wrapping for cell text in this column. Default: False. |
Methods
| Name | Description |
|---|---|
| Sort | Sorts tree nodes by this column's cell text. |
| TreeView | Returns the tree view data object that owns this column. |
| UpdateWidth | Sets the column width and triggers layout recalculation. |