Class ExTreeView
- Namespace
- ExControls
- Assembly
- ExControls.dll
Extended TreeView control: nodes can be hidden without removing them (ExTreeNodeCollection) and the tree can use the Explorer theme (Style).
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExTreeView.ico")]
public class ExTreeView : TreeView, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IThemeable
- Inheritance
-
ExTreeView
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ExTreeView()
Initializes a new instance of the ExTreeView class.
public ExTreeView()
Properties
Nodes
Gets the collection of root tree nodes including the hidden ones; the base Nodes contains only the visible nodes.
[ExCategory(CategoryType.Behavior)]
[ExDescription("TreeViewNodesDescr")]
public virtual ExTreeNodeCollection Nodes { get; }
Property Value
Style
Style of PlusMinus sign.
[ExDescription("Style of PlusMinus sign.")]
[ExCategory(CategoryType.Appearance)]
public ExTreeViewStyle Style { get; set; }
Property Value
Methods
ApplyTheme(ExTheme)
Sets the colors of the tree by the theme (box colors, also in the system style) and its scroll bars. In the custom style a tree with a border gets a 1 px border in BorderColor; a tree without a border stays without one. Dark scroll bars switch also the expand buttons to the dark Explorer theme.
public void ApplyTheme(ExTheme theme)
Parameters
themeExThemetheme to apply
Events
TreeNodeAdded
Occurs when the new TreeNode was added to TreeNodeCollection.
public event EventHandler<ExTreeViewNodeAddedEventArgs> TreeNodeAdded
Event Type
TreeNodeRemoved
public event EventHandler<ExTreeViewNodeRemovedEventArgs> TreeNodeRemoved