System.Windows.Forms.TreeView: Method Members

The methods of System.Windows.Forms.TreeView are listed below. For a list of all members, see the TreeView Members list.

See Also: Inherited members from System.Windows.Forms.Control

Public Methods

BeginUpdate()

Disables any redrawing of the tree view.

CollapseAll()

Collapses all the tree nodes.

EndUpdate()

Enables the redrawing of the tree view.

ExpandAll()

Expands all the tree nodes.

GetNodeAt(System.Drawing.Point) : TreeNode

Retrieves the tree node that is at the specified point.

GetNodeAt(int, int) : TreeNode

Retrieves the tree node at the point with the specified coordinates.

GetNodeCount(bool) : int

Retrieves the number of tree nodes, optionally including those in all subtrees, assigned to the tree view control.

HitTest(System.Drawing.Point) : TreeViewHitTestInfo

Provides node information, given a point.

HitTest(int, int) : TreeViewHitTestInfo

Provides node information, given x- and y-coordinates.

Sort()

Sorts the items in System.Windows.Forms.TreeView control.

override
ToString() : string

Overrides System.ComponentModel.Component.ToString.

Protected Methods

override
CreateHandle()
Documentation for this section has not yet been entered.
override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.TreeView and optionally releases the managed resources.

GetItemRenderStyles(TreeNode, int) : OwnerDrawPropertyBag

Returns an System.Windows.Forms.OwnerDrawPropertyBag for the specified System.Windows.Forms.TreeNode.

override
IsInputKey(Keys) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnAfterCheck(TreeViewEventArgs)

Raises the TreeView.AfterCheck event.

OnAfterCollapse(TreeViewEventArgs)

Raises the TreeView.AfterCollapse event.

OnAfterExpand(TreeViewEventArgs)

Raises the TreeView.AfterExpand event.

OnAfterLabelEdit(NodeLabelEditEventArgs)

Raises the TreeView.AfterLabelEdit event.

OnAfterSelect(TreeViewEventArgs)

Raises the TreeView.AfterSelect event.

OnBeforeCheck(TreeViewCancelEventArgs)

Raises the TreeView.BeforeCheck event.

OnBeforeCollapse(TreeViewCancelEventArgs)

Raises the TreeView.BeforeCollapse event.

OnBeforeExpand(TreeViewCancelEventArgs)

Raises the TreeView.BeforeExpand event.

OnBeforeLabelEdit(NodeLabelEditEventArgs)

Raises the TreeView.BeforeLabelEdit event.

OnBeforeSelect(TreeViewCancelEventArgs)

Raises the TreeView.BeforeSelect event.

OnDrawNode(DrawTreeNodeEventArgs)

Raises the TreeView.DrawNode event.

override
OnHandleCreated(EventArgs)

Overrides Control.OnHandleCreated(EventArgs).

override
OnHandleDestroyed(EventArgs)

Overrides Control.OnHandleDestroyed(EventArgs).

OnItemDrag(ItemDragEventArgs)

Raises the TreeView.ItemDrag event.

override
OnKeyDown(KeyEventArgs)

Raises the Control.KeyDown event.

override
OnKeyPress(KeyPressEventArgs)

Raises the Control.KeyPress event.

override
OnKeyUp(KeyEventArgs)

Overrides Control.OnKeyUp(KeyEventArgs).

override
OnMouseHover(EventArgs)

Raises the Control.MouseHover event.

override
OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

OnNodeMouseClick(TreeNodeMouseClickEventArgs)

Raises the TreeView.NodeMouseClick event.

OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs)

Raises the TreeView.NodeMouseDoubleClick event.

OnNodeMouseHover(TreeNodeMouseHoverEventArgs)

Raises the TreeView.NodeMouseHover event.

OnRightToLeftLayoutChanged(EventArgs)

Raises the TreeView.RightToLeftLayoutChanged event.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.