C# Class Outliner.NodesCollection

Collection of selected nodes.
Inheritance: System.Collections.CollectionBase
Datei anzeigen Open project: Pjanssen/Outliner

Public Methods

Method Description
Add ( TreeNode treeNode ) : int

Adds a tree node to the collection.

Contains ( TreeNode treeNode ) : bool

Determines whether treenode belongs to the collection.

IndexOf ( TreeNode treeNode ) : int

Gets index of tree node in the collection.

Insert ( int index, TreeNode treeNode ) : void

Inserts a tree node at specified index.

Remove ( TreeNode treeNode ) : void

Removed a tree node from the collection.

containsChild ( TreeNode treeNode ) : bool
isParentOfNodeInSel ( TreeNode node ) : bool
this ( int index ) : TreeNode

Gets tree node at specified index.

Protected Methods

Method Description
OnClear ( ) : void

Occurs when collection is being cleared.

containsChildRec ( TreeNode node, TreeNode t ) : bool

Method Details

Add() public method

Adds a tree node to the collection.
public Add ( TreeNode treeNode ) : int
treeNode System.Windows.Forms.TreeNode Tree node to add.
return int

Contains() public method

Determines whether treenode belongs to the collection.
public Contains ( TreeNode treeNode ) : bool
treeNode System.Windows.Forms.TreeNode Tree node to check.
return bool

IndexOf() public method

Gets index of tree node in the collection.
public IndexOf ( TreeNode treeNode ) : int
treeNode System.Windows.Forms.TreeNode Tree node to get index of.
return int

Insert() public method

Inserts a tree node at specified index.
public Insert ( int index, TreeNode treeNode ) : void
index int The position into which the new element has to be inserted.
treeNode System.Windows.Forms.TreeNode Tree node to insert.
return void

OnClear() protected method

Occurs when collection is being cleared.
protected OnClear ( ) : void
return void

Remove() public method

Removed a tree node from the collection.
public Remove ( TreeNode treeNode ) : void
treeNode System.Windows.Forms.TreeNode Tree node to remove.
return void

containsChild() public method

public containsChild ( TreeNode treeNode ) : bool
treeNode System.Windows.Forms.TreeNode
return bool

containsChildRec() protected method

protected containsChildRec ( TreeNode node, TreeNode t ) : bool
node System.Windows.Forms.TreeNode
t System.Windows.Forms.TreeNode
return bool

isParentOfNodeInSel() public method

public isParentOfNodeInSel ( TreeNode node ) : bool
node System.Windows.Forms.TreeNode
return bool

this() public method

Gets tree node at specified index.
public this ( int index ) : TreeNode
index int
return System.Windows.Forms.TreeNode