menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GenericBinaryTreeWithCounterCollection<V, C> - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    ISupportInitialize
    IGenericBinaryTreeWithCounterCollection<V, C>
    IGenericBinaryTreeWithSummaryCollection<V>
    IGenericBinaryTreeCollection<V>
    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()
    Namespace: Syncfusion.UI.Xaml.Collections.Generic
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    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
    Name
    V
    C

    Constructors

    GenericBinaryTreeWithCounterCollection(C, Boolean)

    Declaration
    public GenericBinaryTreeWithCounterCollection(C startPos, bool sorted)
    Parameters
    Type Name Description
    C startPos
    System.Boolean sorted

    GenericBinaryTreeWithCounterCollection(GenericTreeTableWithCounter<V, C>)

    Declaration
    public GenericBinaryTreeWithCounterCollection(GenericTreeTableWithCounter<V, C> genericTree)
    Parameters
    Type Name Description
    GenericTreeTableWithCounter<V, C> genericTree

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type
    System.Int32

    HasSummaries

    Indicates whether the tree has summaries.

    Declaration
    public bool HasSummaries { get; }
    Property Value
    Type
    System.Boolean

    Identifier

    Declaration
    public int Identifier { get; set; }
    Property Value
    Type
    System.Int32

    IsFixedSize

    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

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type
    System.Boolean

    IsSynchronized

    Declaration
    public bool IsSynchronized { get; }
    Property Value
    Type
    System.Boolean

    Item[Int32]

    Declaration
    public V this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type
    V

    SyncRoot

    Declaration
    public object SyncRoot { get; }
    Property Value
    Type
    System.Object

    Tag

    Declaration
    public object Tag { get; set; }
    Property Value
    Type
    System.Object

    Methods

    Add(V)

    Declaration
    public int Add(V item)
    Parameters
    Type Name Description
    V item
    Returns
    Type
    System.Int32

    AddIfNotExists(Object, V)

    Declaration
    public V AddIfNotExists(object key, V item)
    Parameters
    Type Name Description
    System.Object key
    V item
    Returns
    Type
    V

    BeginInit()

    Declaration
    public void BeginInit()

    Clear()

    Declaration
    public void Clear()

    Contains(V)

    Declaration
    public bool Contains(V item)
    Parameters
    Type Name Description
    V item
    Returns
    Type
    System.Boolean

    CopyTo(V[], Int32)

    Declaration
    public void CopyTo(V[] array, int arrayIndex)
    Parameters
    Type Name Description
    V[] array
    System.Int32 arrayIndex

    Dispose()

    Disposes of the object and releases internal objects.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    System.Boolean isDisposing

    EndInit()

    Declaration
    public void EndInit()

    FindHighestSmallerOrEqualKey(Object)

    Declaration
    public V FindHighestSmallerOrEqualKey(object key)
    Parameters
    Type Name Description
    System.Object key
    Returns
    Type
    V

    FindKey(Object)

    Declaration
    public V FindKey(object key)
    Parameters
    Type Name Description
    System.Object key
    Returns
    Type
    V

    GetCounterTotal()

    Returns the total of all counters in this tree.

    Declaration
    public C GetCounterTotal()
    Returns
    Type
    C

    GetEnumerator()

    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.

    Remarks

    Enumerators only allow reading the data in the collection. Enumerators cannot be used to modify the underlying collection.

    GetItemAtCounterPosition(C, Int32)

    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
    Type
    V

    GetItemAtCounterPosition(C, Int32, Boolean)

    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
    Type
    V

    GetNext(V)

    Returns the next item in the collection.

    Declaration
    public V GetNext(V current)
    Parameters
    Type Name Description
    V current
    Returns
    Type
    V

    GetNextNotEmptyCounterItem(V, Int32)

    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
    Type
    V

    GetNextVisibleItem(V)

    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
    Type
    V

    GetPrevious(V)

    Returns the previous item in the collection.

    Declaration
    public V GetPrevious(V current)
    Parameters
    Type Name Description
    V current
    Returns
    Type
    V

    GetPreviousNotEmptyCounterItem(V, Int32)

    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
    Type
    V

    GetPreviousVisibleItem(V)

    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
    Type
    V

    GetStartCounterPosition()

    Returns the starting counter for this tree.

    Declaration
    public C GetStartCounterPosition()
    Returns
    Type
    C

    GetSummaries(ITreeTableEmptySummaryArraySource)

    Returns an array of summary objects.

    Declaration
    public ITreeTableSummary[] GetSummaries(ITreeTableEmptySummaryArraySource emptySummaries)
    Parameters
    Type Name Description
    ITreeTableEmptySummaryArraySource emptySummaries
    Returns
    Type
    ITreeTableSummary[]

    IndexOf(V)

    Declaration
    public int IndexOf(V item)
    Parameters
    Type Name Description
    V item
    Returns
    Type
    System.Int32

    IndexOfKey(Object)

    Declaration
    public int IndexOfKey(object key)
    Parameters
    Type Name Description
    System.Object key
    Returns
    Type
    System.Int32

    Insert(Int32, V)

    Declaration
    public void Insert(int index, V item)
    Parameters
    Type Name Description
    System.Int32 index
    V item

    InvalidateCounterTopDown(Boolean)

    Marks all counters dirty.

    Declaration
    public void InvalidateCounterTopDown(bool notifyCounterSource)
    Parameters
    Type Name Description
    System.Boolean notifyCounterSource

    InvalidateSummariesTopDown(Boolean)

    Marks all summaries dirty.

    Declaration
    public void InvalidateSummariesTopDown(bool notifySummariesSource)
    Parameters
    Type Name Description
    System.Boolean notifySummariesSource

    if set to true notify summaries source.

    RaiseEnsureInitialized(String)

    Declaration
    public void RaiseEnsureInitialized(string member)
    Parameters
    Type Name Description
    System.String member

    Remove(V)

    Declaration
    public bool Remove(V item)
    Parameters
    Type Name Description
    V item
    Returns
    Type
    System.Boolean

    RemoveAt(Int32)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Events

    EnsureInitialized

    Declaration
    public event EventHandler<GenericTreeTableEnsureInitializedEventArgs> EnsureInitialized
    Event Type
    Type
    System.EventHandler<GenericTreeTableEnsureInitializedEventArgs>

    Explicit Interface Implementations

    ICollection<V>.Add(V)

    Declaration
    void ICollection<V>.Add(V item)
    Parameters
    Type Name Description
    V item

    ICollection.CopyTo(Array, Int32)

    Declaration
    void ICollection.CopyTo(Array array, int index)
    Parameters
    Type Name Description
    System.Array array
    System.Int32 index

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type
    System.Collections.IEnumerator

    IList.Add(Object)

    Declaration
    int IList.Add(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    System.Int32

    IList.Contains(Object)

    Declaration
    bool IList.Contains(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    System.Boolean

    IList.get_Item(Int32)

    Declaration
    object IList.get_Item(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Object

    IList.IndexOf(Object)

    Declaration
    int IList.IndexOf(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    System.Int32

    IList.Insert(Int32, Object)

    Declaration
    void IList.Insert(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    IList.Item[Int32]

    Declaration
    object IList.this[] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type
    System.Object

    IList.Remove(Object)

    Declaration
    void IList.Remove(object value)
    Parameters
    Type Name Description
    System.Object value

    IList.set_Item(Int32, Object)

    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
    ISupportInitialize
    IGenericBinaryTreeWithCounterCollection<V, C>
    IGenericBinaryTreeWithSummaryCollection<V>
    IGenericBinaryTreeCollection<V>

    Extension Methods

    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, Int32, Func<TElement, Object>[])
    PivotExtension.GroupByMany<TElement>(IEnumerable<TElement>, IEnumerable<Func<TElement, Object>>)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    ChartExtensionUtils.DistinctBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved