Class GenericTreeTable<V>
Inheritance
GenericTreeTable<V>
Assembly: Syncfusion.Maui.GridCommon.dll
Syntax
public class GenericTreeTable<V> : ITreeTable, IList, ICollection, IDisposable, IList<GenericTreeTableEntry<V>>, ICollection<GenericTreeTableEntry<V>>, IEnumerable<GenericTreeTableEntry<V>>, IEnumerable, ISupportInitialize
Type Parameters
Constructors
GenericTreeTable(bool)
Declaration
public GenericTreeTable(bool sorted)
Parameters
| Type |
Name |
Description |
| bool |
sorted |
|
Properties
Comparer
Gets or sets the comparer used by sorted trees.
Declaration
public IComparer Comparer { get; set; }
Property Value
Count
Gets the number of items contained in the collection.
Declaration
public int Count { get; }
Property Value
Identifier
Declaration
public int Identifier { get; set; }
Property Value
IsFixedSize
Gets a value indicating whether the collection has a fixed size.
Declaration
public bool IsFixedSize { get; }
Property Value
IsInitializing
Indicates whether BeginInit was called.
Declaration
public bool IsInitializing { get; }
Property Value
IsReadOnly
Gets a value indicating whether the collection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
IsSynchronized
Declaration
public bool IsSynchronized { get; }
Property Value
this[int]
Gets or sets the item at the zero-based index.
Declaration
public GenericTreeTableEntry<V> this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| int |
index |
|
Property Value
Root
Declaration
public ITreeTableNode Root { get; }
Property Value
Sorted
Indicates whether thisTree is sorted.
Declaration
public bool Sorted { get; }
Property Value
SyncRoot
Declaration
public object SyncRoot { get; }
Property Value
Tag
Declaration
public object Tag { get; set; }
Property Value
Methods
Add(GenericTreeTableEntry<V>)
Adds a value to the end of the collection.
Declaration
public int Add(GenericTreeTableEntry<V> item)
Parameters
| Type |
Name |
Description |
| GenericTreeTableEntry<V> |
item |
The item to be added to the end of the collection. The value must not be a NULL reference (Nothing in Visual Basic).
|
Returns
| Type |
Description |
| int |
The zero-based collection index at which the value has been added.
|
AddIfNotExists(object, GenericTreeTableEntry<V>)
Declaration
public GenericTreeTableEntry<V> AddIfNotExists(object key, GenericTreeTableEntry<V> entry)
Parameters
Returns
BeginInit()
Optimizes insertion of many items when thisTree is initialized for the first time.
Declaration
Clear()
Removes all items from the collection.
Declaration
Contains(GenericTreeTableEntry<V>)
Determines if the item belongs to this collection.
Declaration
public bool Contains(GenericTreeTableEntry<V> item)
Parameters
| Type |
Name |
Description |
| GenericTreeTableEntry<V> |
item |
The object to locate in the collection. The value can be a NULL reference (Nothing in Visual Basic).
|
Returns
| Type |
Description |
| bool |
True if item is found in the collection; otherwise False.
|
CopyTo(GenericTreeTableEntry<V>[], int)
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
Declaration
public void CopyTo(GenericTreeTableEntry<V>[] array, int index)
Parameters
| Type |
Name |
Description |
| GenericTreeTableEntry<V>[] |
array |
The one-dimensional array that is the destination of the items copied from the ArrayList. The array must have zero-based indexing.
|
| int |
index |
The zero-based index in an array at which copying begins.
|
Dispose()
Declaration
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
EndInit()
Ends optimization of insertion of items when thisTree is initialized for the first time.
Declaration
FindHighestSmallerOrEqualKey(object)
Declaration
public GenericTreeTableEntry<V> FindHighestSmallerOrEqualKey(object key)
Parameters
| Type |
Name |
Description |
| object |
key |
|
Returns
FindKey(object)
Declaration
public GenericTreeTableEntry<V> FindKey(object key)
Parameters
| Type |
Name |
Description |
| object |
key |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<GenericTreeTableEntry<V>> GetEnumerator()
Returns
GetNextEntry(GenericTreeTableEntry<V>)
Optimized access to a subsequent entry.
Declaration
public GenericTreeTableEntry<V> GetNextEntry(GenericTreeTableEntry<V> current)
Parameters
Returns
GetPreviousEntry(GenericTreeTableEntry<V>)
Optimized access to the previous entry.
Declaration
public GenericTreeTableEntry<V> GetPreviousEntry(GenericTreeTableEntry<V> current)
Parameters
Returns
IndexOf(GenericTreeTableEntry<V>)
Returns the zero-based index of the occurrence of the item in the collection.
Declaration
public int IndexOf(GenericTreeTableEntry<V> item)
Parameters
| Type |
Name |
Description |
| GenericTreeTableEntry<V> |
item |
The item to locate in the collection. The value can be a NULL reference (Nothing in Visual Basic).
|
Returns
| Type |
Description |
| int |
The zero-based index of the occurrence of the item within the entire collection, if found; otherwise -1.
|
IndexOfKey(object)
Declaration
public int IndexOfKey(object key)
Parameters
| Type |
Name |
Description |
| object |
key |
|
Returns
Insert(int, GenericTreeTableEntry<V>)
Inserts an item into the collection at the specified index.
Declaration
public void Insert(int index, GenericTreeTableEntry<V> item)
Parameters
| Type |
Name |
Description |
| int |
index |
The zero-based index at which the item should be inserted.
|
| GenericTreeTableEntry<V> |
item |
The item to insert. The value must not be a NULL reference (Nothing in Visual Basic).
|
Remove(GenericTreeTableEntry<V>)
Removes the specified item from the collection.
Declaration
public bool Remove(GenericTreeTableEntry<V> item)
Parameters
| Type |
Name |
Description |
| GenericTreeTableEntry<V> |
item |
The item to remove from the collection. If the value is NULL or the item is not contained
in the collection, the method will do nothing.
|
Returns
RemoveAt(int)
Removes the item at the specified index of the collection.
Declaration
public void RemoveAt(int index)
Parameters
| Type |
Name |
Description |
| int |
index |
The zero-based index of the item to remove.
|
Implements