C# 클래스 Habanero.Faces.VWG.TreeViewVWG.TreeNodeCollectionVWG

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
상속: ITreeNodeCollection
파일 보기 프로젝트 열기: Chillisoft/habanero.faces

Private Properties

프로퍼티 타입 설명
IList bool
IList int
IList void
IList void
this objectIList.System

공개 메소드들

메소드 설명
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.

TreeNodeCollectionVWG ( TreeNodeCollection nodes, IControlFactory controlFactory ) : System

constructs a TreeNodeCollectionVWG

this ( int index ) : ITreeNode

Returns the item identified by index.

비공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

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 .
리턴 ITreeNode

Add() 공개 메소드

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 .
리턴 ITreeNode

Add() 공개 메소드

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

Clear() 공개 메소드

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

CopyTo() 공개 메소드

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.
리턴 void

GetEnumerator() 공개 메소드

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

Remove() 공개 메소드

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

RemoveAt() 공개 메소드

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.
리턴 void

TreeNodeCollectionVWG() 공개 메소드

constructs a TreeNodeCollectionVWG
public TreeNodeCollectionVWG ( TreeNodeCollection nodes, IControlFactory controlFactory ) : System
nodes TreeNodeCollection The underlying Nodes collection
controlFactory IControlFactory Control Factory used to Create new nodes for this collection
리턴 System

this() 공개 메소드

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