Class GenericBinaryTreeWithCounterCollection<V, C>
A collection of items maintained in a binary tree
Inheritance
System.Object
GenericBinaryTreeWithCounterCollection<V, C>
Implements
System.Collections.Generic.IList<V>
System.Collections.Generic.ICollection<V>
System.Collections.Generic.IEnumerable<V>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Spreadsheet.Windows.dll
public class GenericBinaryTreeWithCounterCollection<V, C> : IList<V>, ICollection<V>, IEnumerable<V>, IList, ICollection, IEnumerable, IDisposable, ISupportInitialize, IGenericBinaryTreeWithCounterCollection<V, C>, IGenericBinaryTreeWithSummaryCollection<V>, IGenericBinaryTreeCollection<V> where V : ITreeTableEntryHost, ITreeTableCounterSource where C : ITreeTableCounter
Type Parameters
Constructors
Declaration
public GenericBinaryTreeWithCounterCollection(C startPos, bool sorted)
Parameters
Type |
Name |
Description |
C |
startPos |
|
System.Boolean |
sorted |
|
Declaration
public GenericBinaryTreeWithCounterCollection(GenericTreeTableWithCounter<V, C> genericTree)
Parameters
Properties
Declaration
public int Count { get; }
Property Value
Indicates whether the tree has summaries.
Declaration
public bool HasSummaries { get; }
Property Value
Declaration
public int Identifier { get; set; }
Property Value
Declaration
public bool IsFixedSize { get; }
Property Value
Indicates whether BeginInit was called.
Declaration
public bool IsInitializing { get; }
Property Value
Declaration
public bool IsReadOnly { get; }
Property Value
Declaration
public bool IsSynchronized { get; }
Property Value
Declaration
public V this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Declaration
public object SyncRoot { get; }
Property Value
Declaration
public object Tag { get; set; }
Property Value
Methods
Declaration
Parameters
Type |
Name |
Description |
V |
item |
|
Returns
Declaration
public V AddIfNotExists(object key, V item)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
V |
item |
|
Returns
Declaration
Declaration
Declaration
public bool Contains(V item)
Parameters
Type |
Name |
Description |
V |
item |
|
Returns
Declaration
public void CopyTo(V[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
V[] |
array |
|
System.Int32 |
arrayIndex |
|
Disposes of the object and releases internal objects.
Declaration
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Declaration
Declaration
public V FindHighestSmallerOrEqualKey(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Declaration
public V FindKey(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Returns the total of all counters in this tree.
Declaration
public C GetCounterTotal()
Returns
Returns an enumerator for the entire collection.
Declaration
public IEnumerator<V> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<V> |
An Enumerator for the entire collection.
|
Overloaded. Returns an entry at the specified counter position. A cookie defines the type of counter.
Declaration
public V GetItemAtCounterPosition(C searchPosition, int cookie)
Parameters
Type |
Name |
Description |
C |
searchPosition |
The search position.
|
System.Int32 |
cookie |
The cookie.
|
Returns
Returns an entry at the specified counter position. A cookie defines the type of counter.
Declaration
public V GetItemAtCounterPosition(C searchPosition, int cookie, bool preferLeftMost)
Parameters
Type |
Name |
Description |
C |
searchPosition |
The search position.
|
System.Int32 |
cookie |
The cookie.
|
System.Boolean |
preferLeftMost |
Indicates if the leftmost entry should be returned if multiple tree elements have the
same searchPosition.
|
Returns
Returns the next item in the collection.
Declaration
public V GetNext(V current)
Parameters
Type |
Name |
Description |
V |
current |
|
Returns
Returns the subsequent entry in the collection for which the specific counter is not empty.
A cookie defines the type of counter.
Declaration
public V GetNextNotEmptyCounterItem(V current, int cookie)
Parameters
Type |
Name |
Description |
V |
current |
The current.
|
System.Int32 |
cookie |
The cookie.
|
Returns
Returns the next entry in the collection for which CountVisible counter is not empty.
Declaration
public V GetNextVisibleItem(V current)
Parameters
Type |
Name |
Description |
V |
current |
The current.
|
Returns
Returns the previous item in the collection.
Declaration
public V GetPrevious(V current)
Parameters
Type |
Name |
Description |
V |
current |
|
Returns
Returns the previous entry in the collection for which the specific counter is not empty.
A cookie defines the type of counter.
Declaration
public V GetPreviousNotEmptyCounterItem(V current, int cookie)
Parameters
Type |
Name |
Description |
V |
current |
The current.
|
System.Int32 |
cookie |
The cookie.
|
Returns
Returns the previous entry in the collection for which CountVisible counter is not empty.
Declaration
public V GetPreviousVisibleItem(V current)
Parameters
Type |
Name |
Description |
V |
current |
The current.
|
Returns
Returns the starting counter for this tree.
Declaration
public C GetStartCounterPosition()
Returns
Returns an array of summary objects.
Declaration
public ITreeTableSummary[] GetSummaries(ITreeTableEmptySummaryArraySource emptySummaries)
Parameters
Returns
Declaration
public int IndexOf(V item)
Parameters
Type |
Name |
Description |
V |
item |
|
Returns
Declaration
public int IndexOfKey(object key)
Parameters
Type |
Name |
Description |
System.Object |
key |
|
Returns
Declaration
public void Insert(int index, V item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
V |
item |
|
Marks all counters dirty.
Declaration
public void InvalidateCounterTopDown(bool notifyCounterSource)
Parameters
Type |
Name |
Description |
System.Boolean |
notifyCounterSource |
|
Marks all summaries dirty.
Declaration
public void InvalidateSummariesTopDown(bool notifySummariesSource)
Parameters
Type |
Name |
Description |
System.Boolean |
notifySummariesSource |
if set to true notify summaries source.
|
Declaration
public void RaiseEnsureInitialized(string member)
Parameters
Type |
Name |
Description |
System.String |
member |
|
Declaration
public bool Remove(V item)
Parameters
Type |
Name |
Description |
V |
item |
|
Returns
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Events
Declaration
public event EventHandler<GenericTreeTableEnsureInitializedEventArgs> EnsureInitialized
Event Type
Explicit Interface Implementations
Declaration
void ICollection<V>.Add(V item)
Parameters
Type |
Name |
Description |
V |
item |
|
Declaration
void ICollection.CopyTo(Array array, int index)
Parameters
Type |
Name |
Description |
System.Array |
array |
|
System.Int32 |
index |
|
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
System.Collections.IEnumerator |
Declaration
int IList.Add(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Declaration
bool IList.Contains(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Declaration
object IList.get_Item(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
int IList.IndexOf(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Declaration
void IList.Insert(int index, object value)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
value |
|
Declaration
object IList.this[] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
void IList.Remove(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Declaration
void IList.set_Item(int index, object value)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Object |
value |
|
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.IDisposable
Extension Methods