Class TreeNodePrimitivesCollection
Inheritance
System.Object
System.Collections.CollectionBase
TreeNodePrimitivesCollection
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.ICloneable
Inherited Members
System.Collections.CollectionBase.Clear()
System.Collections.CollectionBase.RemoveAt(System.Int32)
System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.CollectionBase.GetEnumerator()
System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnClearComplete()
System.Collections.CollectionBase.InnerList
System.Collections.CollectionBase.List
System.Collections.CollectionBase.Capacity
System.Collections.CollectionBase.Count
System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.Tools.Windows.dll
public class TreeNodePrimitivesCollection : CollectionBase, IList, ICollection, IEnumerable, ICloneable
Constructors
Initialize a new instance of the TreeNodePrimitivesCollection class.
Declaration
public TreeNodePrimitivesCollection(TreeNodeAdv node)
Parameters
Properties
Gets or sets the TreeNodePrimitive based on the type.
Declaration
public TreeNodePrimitive this[PredefinedPrimitiveTypes type] { get; set; }
Parameters
Property Value
Gets or sets the TreeNodePrimitive based on the index.
Declaration
public TreeNodePrimitive this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Declaration
protected TreeNodeAdv TreeNode { get; }
Property Value
Methods
Adds primitive to collection.
Declaration
public int Add(TreeNodePrimitive primitive)
Parameters
Returns
Type |
Description |
System.Int32 |
Returns Integer
|
Adds primitives to collection.
Declaration
public void AddRange(TreeNodePrimitive[] arrPrimitives)
Parameters
Type |
Name |
Description |
TreeNodePrimitive[] |
arrPrimitives |
TreeNode Primitive collection
|
Returns the cloned TreeNodePrimitivesCollection.
Declaration
public virtual TreeNodePrimitivesCollection Clone()
Returns
Check whether the TreeNodePrimitiveCollection contains the TreeNodePrimitive.
Declaration
public bool Contains(TreeNodePrimitive primitive)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Returns the index of the TreeNodePrimitive.
Declaration
public int IndexOf(TreeNodePrimitive primitive)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Insert the TreeNodePrimitive in specified index.
Declaration
public void Insert(int index, TreeNodePrimitive primitive)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
The index which needs to insert the TreeNodePrimitive.
|
TreeNodePrimitive |
primitive |
The TreeNodePrimitive instance.
|
Indicates whether the current primitive value of the TreeNode.
Declaration
public bool IsValidPrimitiveType(PredefinedPrimitiveTypes primitiveType)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected override void OnClear()
Overrides
System.Collections.CollectionBase.OnClear()
Declaration
protected virtual void OnCollectionChanged(CollectionChangeEventArgs args)
Parameters
Type |
Name |
Description |
System.ComponentModel.CollectionChangeEventArgs |
args |
|
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
value |
|
Overrides
System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
value |
|
Overrides
System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
oldValue |
|
System.Object |
newValue |
|
Overrides
System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
Declaration
protected override void OnValidate(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Overrides
System.Collections.CollectionBase.OnValidate(System.Object)
Declaration
protected void RaiseCollectionChanged(CollectionChangeEventArgs args)
Parameters
Type |
Name |
Description |
System.ComponentModel.CollectionChangeEventArgs |
args |
|
Removes primitive from collection.
Declaration
public void Remove(TreeNodePrimitive primitive)
Parameters
Declaration
protected void SetParent(TreeNodeAdv nodeAdv)
Parameters
Events
Occurs when the primitive collection is changed in a TreeNode.
Declaration
public event CollectionChangeEventHandler CollectionChanged
Event Type
Type |
Description |
System.ComponentModel.CollectionChangeEventHandler |
|
Explicit Interface Implementations
Declaration
object ICloneable.Clone()
Returns
Type |
Description |
System.Object |
|
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.ICloneable
Extension Methods