Table of Contents

Interface ITreeViewHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with tree view control.

public interface ITreeViewHandler : IControlHandler, IDisposableObject, IDisposable

Properties

AllowLabelEdit

Gets or sets a value indicating whether the label text of the tree items can be edited.

FullRowSelect

Gets or sets a value indicating whether the selection highlight spans the width of the tree view control.

HasBorder

Gets or sets a value indicating whether the control has a border.

HideRoot

Gets or sets a value indicating whether the display of the root node is supressed. This effectively causing the first-level nodes to appear as a series of root nodes.

Indentation

Gets or sets the current control indentation.

RowLines

Gets or sets a value indicating whether to draw a contrasting border between displayed rows.

ShowExpandButtons

Gets or sets a value indicating whether expand buttons are displayed next to tree items that contain child tree items.

ShowLines

Gets or sets a value indicating whether lines are drawn between tree items in the tree view control.

ShowRootLines

Gets or sets a value indicating whether lines are drawn between the tree items that are at the root of the tree view.

StateImageSpacing

Gets or sets the number of horizontal pixels between the buttons and the state images.

TopItem

Gets or sets the first fully-visible tree item in the tree view control.

TwistButtons

Gets or sets a value indicating whether to select alternative style of +/- buttons and to show rotating ("twisting") arrows instead.

VariableRowHeight

Gets or sets a value indicating whether row heights become big enough to fit the content.

Methods

BeginLabelEdit(TreeViewItem)

Initiates the editing of the tree item label.

CollapseAll()

Collapses all child tree items.

CollapseAllChildren(TreeViewItem)

Collapses all children of the specified item.

EndLabelEdit(TreeViewItem, bool)

Ends the editing of the tree item label.

EnsureVisible(TreeViewItem)

Ensures that the tree item is visible, expanding tree items and scrolling the tree view control as necessary.

ExpandAll()

Expands all child tree items.

ExpandAllChildren(TreeViewItem)

Expands all children of the specified item.

HitTest(PointD)

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 the specified item into view.

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.