Skip to content

TreeView Control Members

See Also

TreeView Overview

See Also

Suite Pro Controls ActiveX Control v24.0

TreeView Control Members

Public Methods

Method Description
Public MethodAboutBox Displays the about box for the control.
Public MethodEnableExplorerStyle When using Windows Vista or Windows 7, specifies that the control will use the Win7/Vista explorer style.
Public MethodGetItemHeight Returns the number of TreeViewNode objects that fit in the internal area of a TreeView control.
Public MethodGetVisibleCount Returns a reference to the TreeViewNode object located at the coordinates of x and y.
Public MethodHitTest Returns a reference to the TreeViewNode object located at the coordinates of x and y.
Public MethodOLEDrag Causes a component to initiate an OLE drag/drop operation.
Public MethodSetIconSize Sets the icon size of the node items.
Public MethodSetItemHeight Returns or sets the height of the items in the TreeView.
Public MethodStartLabelEdit Enables a user to edit a label.

Public Properties

Property Description
Public PropertyAppearance Gets or sets the paint style of the control.
Public PropertyBackColor Gets or sets the background color for the TreeView control.
Public PropertyCheckboxes Gets or sets a value indicating whether check boxes are displayed next to the tree nodes in the tree view control.
Public PropertyControlToolTip Gets or sets the tool tip that is displayed when the mouse cursor is positioned over this item.
Public PropertyDropHighlight 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.
Public PropertyEnabled Gets or sets a value indicating whether the control can respond to user interaction.
Public PropertyEnableMarkup Allows the use of a XAML snippet to be used for the control.
Public PropertyFont Gets or sets the font of the text displayed by the control.
Public PropertyForeColor The current foreground color for this control, which is the color the control uses to draw its text.
Public PropertyFullRowSelect Gets or sets a value indicating whether the selection highlight spans the width of the tree view control.
Public PropertyHideSelection Gets or sets a value indicating whether the selected tree node remains highlighted even when the tree view has lost the focus.
Public PropertyHotTracking 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.
Public PropertyhWnd Returns the handle to the TreeView control.
Public PropertyIcons A collection of icons used for TreeViewNode objects.
Public PropertyIconSize Gets or sets the size of icons displayed for TreeViewNode objects.
Public PropertyIndentation Returns or sets the width of the indentation of child nodes in the TreeView control.
Public PropertyLabelEdit Returns or sets a value that determines if a user can edit the label of a TreeViewNode object in a TreeView control.
Public PropertyMarkupContext Connects events in XML Markup with actual methods, functions, and events in your code.
Public PropertyNodes Gets the collection of tree nodes that are assigned to the tree view control.
Public PropertyOLEDragMode Returns or sets whether the component or the programmer handles an OLE drag/drop operation.
Public PropertyOLEDropMode Uses the flags from the OLEDropConstants enumeration to specify the drop mode used by the tree view for dropping external items.
Public PropertyPathSeparator Gets or sets the delimiter string that the tree node path uses.
Public PropertyReCreateReparented Gets or sets a value indicating whether the TreeView control elements are aligned to support locales using right-to-left fonts.
Public PropertyRightToLeft Gets or sets a value indicating whether the TreeView control displays scroll bars when they are needed.
Public PropertyRightToLeftReading Allows Right-To-Left (RTL) reading order without changing the entire layout of the control (columns order, etc).
Public PropertyScroll Gets or sets the tree node that is currently selected in the tree view control.
Public PropertySelectedItem Gets or sets the background color used for currently selected nodes.
Public PropertySelectionBackColor Gets or sets the text color used for currently selected nodes.
Public PropertySelectionForeColor Specifies whether to display a border around the edge of the control.
Public PropertyShowBorder Gets or sets a value indicating whether lines are drawn between tree nodes in the tree view control.
Public PropertyShowLines Gets or sets a value indicating whether plus-sign (+) and minus-sign (-) buttons are displayed next to tree nodes that contain child tree nodes.
Public PropertyShowPlusMinus 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.
Public PropertySingleSel Returns or sets a value that determines whether the root level nodes of a TreeView control are sorted alphabetically.
Public PropertyToolTipContext Represents the tool tip window that is used to display tool tips.
Public PropertyUpdateBackColorOnAppearanceChange Gets or sets a value indicating whether the background color updates when the appearance changes.
Public PropertyUpdateForeColorOnAppearanceChange Gets or sets a value indicating whether the foreground color updates when the appearance changes.
Public PropertyUseVisualStyle Determines if the control is drawn using visual styles/SkinFramework, if supported.

Events

Event Description
Public EventAfterLabelEdit Occurs after the tree node label text is edited.
Public EventBeforeLabelEdit Occurs before the tree node label text is edited.
Public EventCancelLabelEdit Occurs when a label edit has been canceled by the user or cancel has been set in the BeforeLabelEdit event.
Public EventCollapse Generated when any Node object in a TreeView control is collapsed.
Public EventDblClick Occurs when a node in the TreeView control is double-clicked.
Public EventExpand Occurs when a Node object in a TreeView control is expanded, that is, when its child nodes become visible.
Public EventExpanding Occurs when a Node object in a TreeView control is currently expanding, that is, when its child nodes are becoming visible.
Public EventKeyDown Occurs when a key is pressed while the control has focus.
Public EventKeyPress Occurs when a key is pressed while the control has focus.
Public EventKeyUp Occurs when a key is released while the control has focus.
Public EventMouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed.
Public EventMouseMove Occurs when the mouse pointer is moved over the control.
Public EventMouseUp Occurs when the mouse pointer is over the control and a mouse button is released.
Public EventNodeCheck Occurs after the tree node check box is checked.
Public EventNodeClick Occurs when a Node object is clicked.
Public EventOLECompleteDrag Occurs when a source component is dropped onto a target component, informing the source component that a drag action was either performed or canceled.
Public EventOLEDragDrop Occurs when a source component is dropped onto a target component when the source component determines that a drop can occur.
Public EventOLEDragOver Occurs when one component is dragged over another.
Public EventOLEGiveFeedback 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.
Public EventOLESetData 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.
Public EventOLEStartDrag 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

TreeView Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.