System.Windows.Forms.TreeView: Property Members

The properties 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 Properties

override
BackColorSystem.Drawing.Color. Documentation for this section has not yet been entered.
override
BackgroundImageSystem.Drawing.Image.

Gets or set the background image for the System.Windows.Forms.TreeView control.

override
BackgroundImageLayoutImageLayout.

Gets or sets the layout of the background image for the System.Windows.Forms.TreeView control.

BorderStyleBorderStyle.

Gets or sets the border style of the tree view control.

CheckBoxesbool.

Gets or sets a value indicating whether check boxes are displayed next to the tree nodes in the tree view control.

DrawModeTreeViewDrawMode.

Gets or sets the mode in which the control is drawn.

override
ForeColorSystem.Drawing.Color.

The current foreground color for this control, which is the color the control uses to draw its text.

FullRowSelectbool.

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

HideSelectionbool.

Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view has lost the focus.

HotTrackingbool.

Gets or sets a value indicating whether a tree node label takes on the appearance of a hyperlink as the mouse pointer passes over it.

ImageIndexint.

Gets or sets the image-list index value of the default image that is displayed by the tree nodes.

ImageKeystring.

Gets or sets the key of the default image for each node in the System.Windows.Forms.TreeView control when it is in an unselected state.

ImageListImageList.

Gets or sets the System.Windows.Forms.ImageList that contains the System.Drawing.Image objects that are used by the tree nodes.

Indentint.

Gets or sets the distance to indent each child tree node level.

ItemHeightint.

Gets or sets the height of each tree node in the tree view control.

LabelEditbool.

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

LineColorSystem.Drawing.Color.

Gets or sets the color of the lines connecting the nodes of the System.Windows.Forms.TreeView control.

[read-only]
NodesTreeNodeCollection.

Gets the collection of tree nodes that are assigned to the tree view control.

PaddingPadding.

Gets or sets the spacing between the System.Windows.Forms.TreeView control's contents and its edges.

PathSeparatorstring.

Gets or sets the delimiter string that the tree node path uses.

RightToLeftLayoutbool.

Gets or sets a value that indicates whether the System.Windows.Forms.TreeView should be laid out from right-to-left.

Scrollablebool.

Gets or sets a value indicating whether the tree view control displays scroll bars when they are needed.

SelectedImageIndexint.

Gets or sets the image list index value of the image that is displayed when a tree node is selected.

SelectedImageKeystring.

Gets or sets the key of the default image shown when a System.Windows.Forms.TreeNode is in a selected state.

SelectedNodeTreeNode.

Gets or sets the tree node that is currently selected in the tree view control.

ShowLinesbool.

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

ShowNodeToolTipsbool.

Gets or sets a value indicating ToolTips are shown when the mouse pointer hovers over a System.Windows.Forms.TreeNode.

ShowPlusMinusbool.

Gets or sets a value indicating whether plus-sign (+) and minus-sign (-) buttons are displayed next to tree nodes that contain child tree nodes.

ShowRootLinesbool.

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

Sortedbool.

Gets or sets a value indicating whether the tree nodes in the tree view are sorted.

StateImageListImageList.

Gets or sets the image list that is used to indicate the state of the System.Windows.Forms.TreeView and its nodes.

override
Textstring.

Gets or sets the text of the System.Windows.Forms.TreeView.

TopNodeTreeNode.

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

TreeViewNodeSorterIComparer.

Gets or sets the implementation of IComparer to perform a custom sort of the System.Windows.Forms.TreeView nodes.

[read-only]
VisibleCountint.

Gets the number of tree nodes that can be fully visible in the tree view control.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Overrides Control.CreateParams.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.
override
DoubleBufferedbool.

Gets or sets a value indicating whether the control should redraw its surface using a secondary buffer. The TreeView.DoubleBuffered property does not affect the System.Windows.Forms.TreeView control.