Class TreeTableEntrySourceCollection
A collection of ITreeTableEntrySource objects that are internally using a ITreeTable.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Collections
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeTableEntrySourceCollection : Object, IList, ICollection, IEnumerable, IDisposable
Constructors
TreeTableEntrySourceCollection()
Overloaded. Initializes a new TreeTableEntrySourceCollection.
Declaration
public TreeTableEntrySourceCollection()
TreeTableEntrySourceCollection(ITreeTable)
Initializes a new TreeTableEntrySourceCollection.
Declaration
public TreeTableEntrySourceCollection(ITreeTable inner)
Parameters
Type | Name | Description |
---|---|---|
ITreeTable | inner |
TreeTableEntrySourceCollection(Boolean)
Initializes a new TreeTableEntrySourceCollection.
Declaration
public TreeTableEntrySourceCollection(bool sorted)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | sorted |
Properties
Count
Returns the number of objects in this collection.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
IsFixedSize
Indicates whether the nodes can be added or removed.
Declaration
public bool IsFixedSize { get; }
Property Value
Type |
---|
System.Boolean |
IsInitializing
Indicates whether BeginInit was called.
Declaration
public bool IsInitializing { get; }
Property Value
Type |
---|
System.Boolean |
IsReadOnly
Indicates whether tree is Read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
---|
System.Boolean |
IsSynchronized
Not supported.
Declaration
public bool IsSynchronized { get; }
Property Value
Type |
---|
System.Boolean |
Item[Int32]
Gets / sets an ITreeTableEntrySource at a specific position.
Declaration
public ITreeTableEntrySource this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type |
---|
ITreeTableEntrySource |
SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
Type |
---|
System.Object |
Methods
Add(ITreeTableEntrySource)
Appends an object.
Declaration
public int Add(ITreeTableEntrySource value)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableEntrySource | value | The value of the object to append. |
Returns
Type |
---|
System.Int32 |
BeginInit()
Optimizes insertion of many elements when tree is initialized for the first time.
Declaration
public void BeginInit()
Clear()
Clears all nodes in the tree.
Declaration
public void Clear()
Contains(ITreeTableEntrySource)
Indicates whether object belongs to this collection.
Declaration
public bool Contains(ITreeTableEntrySource value)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableEntrySource | value | The value of the object. |
Returns
Type | Description |
---|---|
System.Boolean | True if object belongs to the collection; false otherwise. |
CopyTo(ITreeTableEntrySource[], Int32)
Copies the contents of the collection to an array.
Declaration
public void CopyTo(ITreeTableEntrySource[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableEntrySource[] | array | Destination array. |
System.Int32 | index | Starting index of the destination array. |
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing |
EndInit()
Ends optimization of insertion of elements when tree is initialized for the first time.
Declaration
public void EndInit()
GetEnumerator()
Returns a strongly typed enumerator.
Declaration
public TreeTableEntrySourceCollectionEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
TreeTableEntrySourceCollectionEnumerator | A strongly types enumerator. |
IndexOf(ITreeTableEntrySource)
Returns the position of a object in the collection.
Declaration
public int IndexOf(ITreeTableEntrySource value)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableEntrySource | value | The value of the object. |
Returns
Type | Description |
---|---|
System.Int32 | The position of the object. |
Insert(Int32, ITreeTableEntrySource)
Inserts an object at the specified index.
Declaration
public void Insert(int index, ITreeTableEntrySource value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index value where the object is to be inserted. |
ITreeTableEntrySource | value | Value of the object to insert. |
Remove(ITreeTableEntrySource)
Removes the object.
Declaration
public void Remove(ITreeTableEntrySource value)
Parameters
Type | Name | Description |
---|---|---|
ITreeTableEntrySource | value | The value of the object to remove. |
RemoveAt(Int32)
Removes a node at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index value of the node to remove. |