Interface ITreeViewHandler
Contains methods and properties which allow to work with tree view control.
public interface ITreeViewHandler
Properties
- AllowLabelEdit
Gets or sets a value indicating whether label editing is allowed.
- FullRowSelect
Gets or sets a value indicating whether selecting a row highlights the entire row.
- HideRoot
Gets or sets a value indicating whether the root element should be hidden.
- Indentation
Gets or sets the indentation of the item.
- RowLines
Gets or sets a value indicating whether horizontal lines are displayed between rows.
- ShowExpandButtons
Gets or sets a value indicating whether expand buttons are displayed.
- ShowLines
Gets or sets a value indicating whether horizontal lines are displayed in the control.
- ShowRootLines
Gets or sets a value indicating whether lines are displayed between the root nodes of a tree structure.
- StateImageSpacing
Gets or sets the spacing between state images and other item parts.
- TopItem
Gets or sets the first fully-visible tree item in the control. This is slower than TopIndex, so if you have item index, use that instead.
- TwistButtons
Gets or sets a value indicating whether the twist buttons are enabled.
- VariableRowHeight
Gets or sets a value indicating whether rows in the control can have variable heights.
Methods
- BeginLabelEdit(TreeViewItem)
Initiates the label editing mode for the specified TreeViewItem.
- Collapse(TreeViewItem)
Collapses the specified item in the tree view.
- CollapseAll()
Collapses all child tree items.
- CollapseAllChildren(TreeViewItem)
Collapses all children of the specified item.
- DeleteAllItems()
Deletes all items in the tree view.
- EndLabelEdit(TreeViewItem, bool)
Ends the label editing process for the specified TreeViewItem.
- EnsureVisible(TreeViewItem)
Ensures that the specified TreeViewItem is visible within the tree view.
- Expand(TreeViewItem)
Expands the specified item in the tree view.
- ExpandAll()
Expands all child tree items.
- ExpandAllChildren(TreeViewItem)
Expands all children of the specified item.
- HitTest(PointD, out TreeViewItem?, out TreeViewHitTestLocations, bool)
Provides tree view item information, at a given client point, in device-independent units.
- IsItemFocused(TreeViewItem)
Checks whether or not item is focused.
- IsItemSelected(TreeViewItem)
Gets whether item is selected.
- MakeAsListBox()
Changes visual style of the control to look like ListBox.
- ScrollIntoView(TreeViewItem)
Scrolls control so the specified item will be fully visible.
- SetFocused(TreeViewItem, bool)
Sets focused state for the item.
- SetItemBackgroundColor(TreeViewItem, Color?)
Sets background color of the item.
- SetItemImageIndex(TreeViewItem, int?)
Sets item image index.
- SetItemIsBold(TreeViewItem, bool)
Sets item's bold state.
- SetItemText(TreeViewItem, string)
Sets item text.
- SetItemTextColor(TreeViewItem, Color?)
Sets foreground color of the item.
- SetSelected(TreeViewItem, bool)
Sets whether the item is selected or not.