Click or drag to resize

TreeView Class

Note: This API is now obsolete.

Standard tree view control with a single column
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
[ObsoleteAttribute("Since 2.4. TreeView is deprecated, please use TreeGridView instead.")]
public class TreeView : Control

The TreeView type exposes the following members.

Constructors
  NameDescription
Public methodTreeView
Initializes a new instance of the TreeView class
Top
Properties
  NameDescription
Public propertyContextMenu
Gets or sets the context menu to show when the user right clicks or presses the menu key
Public propertyDataStore
Gets or sets the data store.
Public propertyLabelEdit
Gets or sets a value indicating whether users can edit the labels of items
Public propertySelectedItem
Gets or sets the selected item.
Public propertyTextColor
Gets or sets the color of the text for all nodes.
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides ControlGetCallback.)
Public methodGetNodeAt
Gets the node at a specified point from the origin of the control
Protected methodOnActivated
Raises the Activated event.
Protected methodOnCollapsed
Raises the Collapsed event.
Protected methodOnCollapsing
Raises the Collapsing event.
Protected methodOnExpanded
Raises the Expanded event.
Protected methodOnExpanding
Raises the Expanding event.
Protected methodOnLabelEdited
Raises the LabelEdited event.
Protected methodOnLabelEditing
Raises the LabelEditing event.
Protected methodOnNodeMouseClick
Raises the NodeMouseClick event.
Protected methodOnSelectionChanged
Raises the SelectionChanged event.
Public methodRefreshData
Refreshes the data, keeping the selection
Public methodRefreshItem
Refreshes the specified item and all its children, keeping the selection if not part of the refreshed nodes
Top
Events
  NameDescription
Public eventActivated
Event to handle when an item is activated
Public eventCollapsed
Occurs after an item has been collapsed
Public eventCollapsing
Occurs before an item is collapsed
Public eventExpanded
Occurs after an item has been expanded
Public eventExpanding
Occurs before an item is expanding
Public eventLabelEdited
Occurs after the label of an item has been edited
Public eventLabelEditing
Occurs before an items label is edited
Public eventNodeMouseClick
Occurs when a node is clicked with the mouse
Public eventSelectionChanged
Occurs when the selection has been changed by the user or programattically
Top
Fields
  NameDescription
Public fieldStatic memberActivatedEvent
Identifier for handlers when attaching the Activated event
Public fieldStatic memberCollapsedEvent
Identifier for handlers when attaching the Collapsed event
Public fieldStatic memberCollapsingEvent
Identifier for handlers when attaching the Collapsing event
Public fieldStatic memberExpandedEvent
Identifier for handlers when attaching the Expanded event
Public fieldStatic memberExpandingEvent
Identifier for handlers when attaching the Expanding event
Public fieldStatic memberLabelEditedEvent
Identifier for handlers when attaching the LabelEdited event
Public fieldStatic memberLabelEditingEvent
Identifier for handlers when attaching the LabelEditing event
Public fieldStatic memberNodeMouseClickEvent
Identifier for handlers when attaching the NodeMouseClick event
Public fieldStatic memberSelectionChangedEvent
Identifier for handlers when attaching the SelectionChanged event
Top
Remarks
This uses the standard tree view controls on windows, so it can sometimes be more desirable to use to give a more natural feel in that case. For a tree with multiple columns, use the TreeGridView.
See Also