C# Class GitForce.TreeViewEx

Yet another TreeViewEx control, written to be suitable for this project. Adds to the standard TreeView the following features: * Multi-selection via new property SelectedNodes[] * Deep selection: recursive selection into children nodes Important: Instead of "nodes.Clear()", call this NodesClear() function!
Inheritance: System.Windows.Forms.TreeView
Datei anzeigen Open project: gdevic/GitForce

Public Methods

Method Description
NodesClear ( ) : void

Clear the tree from all the nodes. Use this call instead of treeView.Nodes.Clear()

SelectAll ( ) : void

Select every node in the tree

TreeViewEx ( ) : System

TreeViewEx constructor

Protected Methods

Method Description
OnBeforeSelect ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void

Mask flickering on TreeView: http://stackoverflow.com/questions/10362988/treeview-flickering

OnItemDrag ( ItemDragEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void

Private Methods

Method Description
SelectNone ( ) : void

Deselect all nodes in the tree

SendMessage ( IntPtr hWnd, int msg, IntPtr wp, IntPtr lp ) : IntPtr
SetSelected ( TreeNode node, bool bSelect ) : void

Select or deselect a given node

SetSelectedDeep ( TreeNode node, bool bSelect ) : void

Deep selection sets the given node and all of its children, recursively.

SetSelectedNodes ( List nodes ) : void

Alternate way to select specific nodes by sending it a list

Method Details

NodesClear() public method

Clear the tree from all the nodes. Use this call instead of treeView.Nodes.Clear()
public NodesClear ( ) : void
return void

OnBeforeSelect() protected method

protected OnBeforeSelect ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs
return void

OnHandleCreated() protected method

Mask flickering on TreeView: http://stackoverflow.com/questions/10362988/treeview-flickering
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
return void

OnItemDrag() protected method

protected OnItemDrag ( ItemDragEventArgs e ) : void
e System.Windows.Forms.ItemDragEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

SelectAll() public method

Select every node in the tree
public SelectAll ( ) : void
return void

TreeViewEx() public method

TreeViewEx constructor
public TreeViewEx ( ) : System
return System