TreeView Control Members
See Also

Suite Pro Controls ActiveX Control v24.0
TreeView Control Members
Public Methods
| Method | Description |
|---|---|
AboutBox |
Displays the about box for the control. |
EnableExplorerStyle |
When using Windows Vista or Windows 7, specifies that the control will use the Win7/Vista explorer style. |
GetItemHeight |
Returns the number of TreeViewNode objects that fit in the internal area of a TreeView control. |
GetVisibleCount |
Returns a reference to the TreeViewNode object located at the coordinates of x and y. |
HitTest |
Returns a reference to the TreeViewNode object located at the coordinates of x and y. |
OLEDrag |
Causes a component to initiate an OLE drag/drop operation. |
SetIconSize |
Sets the icon size of the node items. |
SetItemHeight |
Returns or sets the height of the items in the TreeView. |
StartLabelEdit |
Enables a user to edit a label. |
Public Properties
| Property | Description |
|---|---|
Appearance |
Gets or sets the paint style of the control. |
BackColor |
Gets or sets the background color for the TreeView control. |
Checkboxes |
Gets or sets a value indicating whether check boxes are displayed next to the tree nodes in the tree view control. |
ControlToolTip |
Gets or sets the tool tip that is displayed when the mouse cursor is positioned over this item. |
DropHighlight |
Returns or sets a reference to a Node or ListItem object that is highlighted with the system highlight color when the cursor moves over it. |
Enabled |
Gets or sets a value indicating whether the control can respond to user interaction. |
EnableMarkup |
Allows the use of a XAML snippet to be used for the control. |
Font |
Gets or sets the font of the text displayed by the control. |
ForeColor |
The current foreground color for this control, which is the color the control uses to draw its text. |
FullRowSelect |
Gets or sets a value indicating whether the selection highlight spans the width of the tree view control. |
HideSelection |
Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view has lost the focus. |
HotTracking |
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. |
hWnd |
Returns the handle to the TreeView control. |
Icons |
A collection of icons used for TreeViewNode objects. |
IconSize |
Gets or sets the size of icons displayed for TreeViewNode objects. |
Indentation |
Returns or sets the width of the indentation of child nodes in the TreeView control. |
LabelEdit |
Returns or sets a value that determines if a user can edit the label of a TreeViewNode object in a TreeView control. |
MarkupContext |
Connects events in XML Markup with actual methods, functions, and events in your code. |
Nodes |
Gets the collection of tree nodes that are assigned to the tree view control. |
OLEDragMode |
Returns or sets whether the component or the programmer handles an OLE drag/drop operation. |
OLEDropMode |
Uses the flags from the OLEDropConstants enumeration to specify the drop mode used by the tree view for dropping external items. |
PathSeparator |
Gets or sets the delimiter string that the tree node path uses. |
ReCreateReparented |
Gets or sets a value indicating whether the TreeView control elements are aligned to support locales using right-to-left fonts. |
RightToLeft |
Gets or sets a value indicating whether the TreeView control displays scroll bars when they are needed. |
RightToLeftReading |
Allows Right-To-Left (RTL) reading order without changing the entire layout of the control (columns order, etc). |
Scroll |
Gets or sets the tree node that is currently selected in the tree view control. |
SelectedItem |
Gets or sets the background color used for currently selected nodes. |
SelectionBackColor |
Gets or sets the text color used for currently selected nodes. |
SelectionForeColor |
Specifies whether to display a border around the edge of the control. |
ShowBorder |
Gets or sets a value indicating whether lines are drawn between tree nodes in the tree view control. |
ShowLines |
Gets or sets a value indicating whether plus-sign (+) and minus-sign (-) buttons are displayed next to tree nodes that contain child tree nodes. |
ShowPlusMinus |
Gets or sets a value that causes a tree-view item to be expanded when it becomes selected and to be closed when it becomes unselected. |
SingleSel |
Returns or sets a value that determines whether the root level nodes of a TreeView control are sorted alphabetically. |
ToolTipContext |
Represents the tool tip window that is used to display tool tips. |
UpdateBackColorOnAppearanceChange |
Gets or sets a value indicating whether the background color updates when the appearance changes. |
UpdateForeColorOnAppearanceChange |
Gets or sets a value indicating whether the foreground color updates when the appearance changes. |
UseVisualStyle |
Determines if the control is drawn using visual styles/SkinFramework, if supported. |
Events
| Event | Description |
|---|---|
AfterLabelEdit |
Occurs after the tree node label text is edited. |
BeforeLabelEdit |
Occurs before the tree node label text is edited. |
CancelLabelEdit |
Occurs when a label edit has been canceled by the user or cancel has been set in the BeforeLabelEdit event. |
Collapse |
Generated when any Node object in a TreeView control is collapsed. |
DblClick |
Occurs when a node in the TreeView control is double-clicked. |
Expand |
Occurs when a Node object in a TreeView control is expanded, that is, when its child nodes become visible. |
Expanding |
Occurs when a Node object in a TreeView control is currently expanding, that is, when its child nodes are becoming visible. |
KeyDown |
Occurs when a key is pressed while the control has focus. |
KeyPress |
Occurs when a key is pressed while the control has focus. |
KeyUp |
Occurs when a key is released while the control has focus. |
MouseDown |
Occurs when the mouse pointer is over the control and a mouse button is pressed. |
MouseMove |
Occurs when the mouse pointer is moved over the control. |
MouseUp |
Occurs when the mouse pointer is over the control and a mouse button is released. |
NodeCheck |
Occurs after the tree node check box is checked. |
NodeClick |
Occurs when a Node object is clicked. |
OLECompleteDrag |
Occurs when a source component is dropped onto a target component, informing the source component that a drag action was either performed or canceled. |
OLEDragDrop |
Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur. |
OLEDragOver |
Occurs when one component is dragged over another. |
OLEGiveFeedback |
Occurs after every OLEDragOver event. OLEGiveFeedback allows the source control to provide visual feedback to the user, such as changing the mouse cursor to indicate what will happen if the user drops the object, or provide visual feedback on the selection (in the source component) to indicate what will happen. |
OLESetData |
Occurs on a source component when a target component performs the GetData method on the source’s DataObject object, but before the data for the specified format has been loaded. |
OLEStartDrag |
Occurs when a component's OLEDrag method is performed, or when a component initiates an OLE drag/drop operation when the OLEDragMode property is set to Automatic. |
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.


