Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
TreeView Class
 TreeView Members
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
TreeView Members

Updated: November 2007

Displays a hierarchical collection of labeled items, each represented by a TreeNode.

The TreeView type exposes the following members.

  NameDescription
TreeView Initializes a new instance of the TreeView class.
Top
  NameDescription
AccessibilityNotifyClientsOverloaded.
BeginInvokeOverloaded.
BeginUpdate Disables any redrawing of the tree view.
BringToFront Brings the control to the front of the z-order. (Inherited from Control.)
CollapseAll Collapses all the tree nodes.
Contains Retrieves a value indicating whether the specified control is a child of the control. (Inherited from Control.)
CreateAccessibilityInstance Creates a new accessibility object for the control. (Inherited from Control.)
CreateControl Forces the creation of the control, including the creation of the handle and any child controls. (Inherited from Control.)
CreateControlsInstance Creates a new instance of the control collection for the control. (Inherited from Control.)
CreateGraphics Creates the Graphics for the control. (Inherited from Control.)
CreateHandleInfrastructure. Creates a handle for the control. (Overrides Control..::.CreateHandle()()().)
CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
DefWndProc Sends the specified message to the default window procedure. (Inherited from Control.)
DestroyHandle Destroys the handle associated with the control. (Inherited from Control.)
DisposeOverloaded. Releases the unmanaged resources used by the TreeView.
DoDragDrop Begins a drag-and-drop operation. (Inherited from Control.)
DrawToBitmap Supports rendering to the specified bitmap. (Inherited from Control.)
EndInvoke Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. (Inherited from Control.)
EndUpdate Enables the redrawing of the tree view.
Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
ExpandAll Expands all the tree nodes.
FinalizeOverloaded.
FindForm Retrieves the form that the control is on. (Inherited from Control.)
Focus Sets input focus to the control. (Inherited from Control.)
GetAccessibilityObjectById Retrieves the specified AccessibleObject. (Inherited from Control.)
GetAutoSizeMode Retrieves a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.)
GetChildAtPointOverloaded.
GetContainerControl Returns the next ContainerControl up the control's chain of parent controls. (Inherited from Control.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetItemRenderStylesInfrastructure. Returns an OwnerDrawPropertyBag for the specified TreeNode.
GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
GetNextControl Retrieves the next control forward or back in the tab order of child controls. (Inherited from Control.)
GetNodeAtOverloaded. Retrieves the tree node that is at the specified location.
GetNodeCount Retrieves the number of tree nodes, optionally including those in all subtrees, assigned to the tree view control.
GetPreferredSize Retrieves the size of a rectangular area into which a control can be fitted. (Inherited from Control.)
GetScaledBounds Retrieves the bounds within which the control is scaled. (Inherited from Control.)
GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
GetStyle Retrieves the value of the specified control style bit for the control. (Inherited from Control.)
GetTopLevel Determines if the control is a top-level control. (Inherited from Control.)
GetType Gets the Type of the current instance. (Inherited from Object.)
Hide Conceals the control from the user. (Inherited from Control.)
HitTestOverloaded. Provides node information, given a point.
InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
InitLayout Called after the control has been added to another container. (Inherited from Control.)
InvalidateOverloaded.
InvokeOverloaded.
InvokeGotFocus Raises the GotFocus event for the specified control. (Inherited from Control.)
InvokeLostFocus Raises the LostFocus event for the specified control. (Inherited from Control.)
InvokeOnClick Raises the Click event for the specified control. (Inherited from Control.)
InvokePaint Raises the Paint event for the specified control. (Inherited from Control.)
InvokePaintBackground Raises the PaintBackground event for the specified control. (Inherited from Control.)
IsInputChar Determines if a character is an input character that the control recognizes. (Inherited from Control.)
IsInputKeyInfrastructure. Determines whether the specified key is a regular input key or a special key that requires preprocessing. (Overrides Control..::.IsInputKey(Keys).)
MemberwiseCloneOverloaded.
NotifyInvalidateInfrastructure. Raises the Invalidated event with a specified region of the control to invalidate. (Inherited from Control.)
OnAfterCheck Raises the AfterCheck event.
OnAfterCollapse Raises the AfterCollapse event.
OnAfterExpand Raises the AfterExpand event.
OnAfterLabelEdit Raises the AfterLabelEdit event.
OnAfterSelect Raises the AfterSelect event.
OnAutoSizeChanged Raises the AutoSizeChanged event. (Inherited from Control.)
OnBackColorChanged Raises the BackColorChanged event. (Inherited from Control.)
OnBackgroundImageChanged Raises the BackgroundImageChanged event. (Inherited from Control.)
OnBackgroundImageLayoutChanged Raises the BackgroundImageLayoutChanged event. (Inherited from Control.)
OnBeforeCheck Raises the BeforeCheck event.
OnBeforeCollapse Raises the BeforeCollapse event.
OnBeforeExpand Raises the BeforeExpand event.
OnBeforeLabelEdit Raises the BeforeLabelEdit event.
OnBeforeSelect Raises the BeforeSelect event.
OnBindingContextChanged Raises the BindingContextChanged event. (Inherited from Control.)
OnCausesValidationChanged Raises the CausesValidationChanged event. (Inherited from Control.)
OnChangeUICues Raises the ChangeUICues event. (Inherited from Control.)
OnClick Raises the Click event. (Inherited from Control.)
OnClientSizeChanged Raises the ClientSizeChanged event. (Inherited from Control.)
OnContextMenuChanged Raises the ContextMenuChanged event. (Inherited from Control.)
OnContextMenuStripChanged Raises the ContextMenuStripChanged event. (Inherited from Control.)
OnControlAdded Raises the ControlAdded event. (Inherited from Control.)
OnControlRemoved Raises the ControlRemoved event. (Inherited from Control.)
OnCreateControl Raises the CreateControl method. (Inherited from Control.)
OnCursorChanged Raises the CursorChanged event. (Inherited from Control.)
OnDockChanged Raises the DockChanged event. (Inherited from Control.)
OnDoubleClick Raises the DoubleClick event. (Inherited from Control.)
OnDragDrop Raises the DragDrop event. (Inherited from Control.)
OnDragEnter Raises the DragEnter event. (Inherited from