C# Class Outliner.NodesCollection

Collection of selected nodes.
Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: Pjanssen/Outliner

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnClear ( ) : void

Occurs when collection is being cleared.

containsChildRec ( TreeNode node, TreeNode t ) : bool

Method Details

Add() public méthode

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

Contains() public méthode

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

IndexOf() public méthode

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

Insert() public méthode

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.
Résultat void

OnClear() protected méthode

Occurs when collection is being cleared.
protected OnClear ( ) : void
Résultat void

Remove() public méthode

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

containsChild() public méthode

public containsChild ( TreeNode treeNode ) : bool
treeNode System.Windows.Forms.TreeNode
Résultat bool

containsChildRec() protected méthode

protected containsChildRec ( TreeNode node, TreeNode t ) : bool
node System.Windows.Forms.TreeNode
t System.Windows.Forms.TreeNode
Résultat bool

isParentOfNodeInSel() public méthode

public isParentOfNodeInSel ( TreeNode node ) : bool
node System.Windows.Forms.TreeNode
Résultat bool

this() public méthode

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