C# Class Habanero.Faces.Win.TreeViewWin.TreeNodeCollectionWin

An implementation of ITreeNodeCollection for windows. This implements the wrapper pattern where the underlying windows TreeView control is merely wrapped by this control. this control
Inheritance: ITreeNodeCollection
Afficher le fichier Open project: Chillisoft/habanero.faces

Private Properties

Свойство Type Description
IList bool
IList int
IList void
IList void
this objectIList.System

Méthodes publiques

Méthode Description
Add ( string text ) : ITreeNode

Adds a new tree node to the end of the current tree node collection with the specified label text.

Add ( string name, string text ) : ITreeNode

Adds a new tree node to the end of the current tree node collection with the specified label text.

Add ( ITreeNode treeNode ) : int

Adds a new treeNode to the collection of ITreeNodes

Clear ( ) : void

Removes all items from the T:System.Collections.IList.

CopyTo ( Array array, int index ) : void

Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Remove ( ITreeNode objTreeViewNode ) : void

Removes the specified tree view node.

RemoveAt ( int index ) : void

Removes the T:System.Collections.IList item at the specified index.

TreeNodeCollectionWin ( TreeNodeCollection nodes, IControlFactory controlFactory ) : System

constructs a TreeNodeCollectionWin

this ( int index ) : ITreeNode

Returns the item identified by index.

Private Methods

Méthode Description
IList ( object value ) : bool

Determines whether the T:System.Collections.IList contains a specific value.

IList ( object value ) : int

Adds an item to the T:System.Collections.IList.

IList ( int index, object value ) : void

Inserts an item to the T:System.Collections.IList at the specified index.

IList ( object value ) : void

Removes the first occurrence of a specific object from the T:System.Collections.IList.

this ( int index ) : objectIList.System

Gets or sets the element at the specified index.

Method Details

Add() public méthode

Adds a new tree node to the end of the current tree node collection with the specified label text.
public Add ( string text ) : ITreeNode
text string The label text displayed by the TreeNode .
Résultat ITreeNode

Add() public méthode

Adds a new tree node to the end of the current tree node collection with the specified label text.
public Add ( string name, string text ) : ITreeNode
name string The name of the node(used as the key).
text string The label text displayed by the TreeNode .
Résultat ITreeNode

Add() public méthode

Adds a new treeNode to the collection of ITreeNodes
public Add ( ITreeNode treeNode ) : int
treeNode ITreeNode the that is being added to the collection
Résultat int

Clear() public méthode

Removes all items from the T:System.Collections.IList.
The is read-only.
public Clear ( ) : void
Résultat void

CopyTo() public méthode

Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a particular T:System.Array index.
is null. is less than zero. is multidimensional.-or- is equal to or greater than the length of .-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination .
public CopyTo ( Array array, int index ) : void
array System.Array The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
index int The zero-based index in at which copying begins.
Résultat void

GetEnumerator() public méthode

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

Remove() public méthode

Removes the specified tree view node.
public Remove ( ITreeNode objTreeViewNode ) : void
objTreeViewNode ITreeNode Obj tree view node.
Résultat void

RemoveAt() public méthode

Removes the T:System.Collections.IList item at the specified index.
is not a valid index in the . The is read-only.-or- The has a fixed size.
public RemoveAt ( int index ) : void
index int The zero-based index of the item to remove.
Résultat void

TreeNodeCollectionWin() public méthode

constructs a TreeNodeCollectionWin
public TreeNodeCollectionWin ( TreeNodeCollection nodes, IControlFactory controlFactory ) : System
nodes System.Windows.Forms.TreeNodeCollection The underlying Nodes collection
controlFactory IControlFactory Control Factory used to Create new nodes for this collection
Résultat System

this() public méthode

Returns the item identified by index.
public this ( int index ) : ITreeNode
index int
Résultat ITreeNode