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
Show file Open project: Chillisoft/habanero.faces

Private Properties

Property Type Description
IList bool
IList int
IList void
IList void
this objectIList.System

Public Methods

Method 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

Method 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 method

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 .
return ITreeNode

Add() public method

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 .
return ITreeNode

Add() public method

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

Clear() public method

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

CopyTo() public method

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.
return void

GetEnumerator() public method

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

Remove() public method

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

RemoveAt() public method

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.
return void

TreeNodeCollectionWin() public method

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
return System

this() public method

Returns the item identified by index.
public this ( int index ) : ITreeNode
index int
return ITreeNode