menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LevelElementCollection - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LevelElementCollection

    Represents the collection of level elements.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    LevelElementCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    ICloneable<LevelElementCollection>
    Inherited Members
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnClear()
    System.Collections.CollectionBase.OnClearComplete()
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    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.Olap.Reports
    Assembly: Syncfusion.Olap.Base.dll
    Syntax
    public class LevelElementCollection : CollectionBase, IList, ICollection, IEnumerable, ICloneable<LevelElementCollection>

    Constructors

    LevelElementCollection()

    Initializes a new instance of the LevelElementCollection class.

    Declaration
    public LevelElementCollection()

    LevelElementCollection(HierarchyElement)

    Initializes a new instance of the LevelElementCollection class.

    Declaration
    public LevelElementCollection(HierarchyElement parentHierarchyElement)
    Parameters
    Type Name Description
    HierarchyElement parentHierarchyElement

    The parent hierarchy element.

    Properties

    Item[Int32]

    Gets or sets the LevelElement at the specified index.

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

    The index of the level element.

    Property Value
    Type
    LevelElement

    Item[String]

    Gets the LevelElement with the specified name.

    Declaration
    public LevelElement this[string name] { get; }
    Parameters
    Type Name Description
    System.String name
    Property Value
    Type Description
    LevelElement

    LevelElement

    Methods

    Add(LevelElement)

    Adds the specified level element.

    Declaration
    public int Add(LevelElement levelElement)
    Parameters
    Type Name Description
    LevelElement levelElement

    The level element which is to be added.

    Returns
    Type Description
    System.Int32

    The index of the level element object in the current collection.

    Clone()

    Clones this instance.

    Declaration
    public LevelElementCollection Clone()
    Returns
    Type Description
    LevelElementCollection

    A copy of this instance.

    FindLevelElementByName(String)

    Finds the level element by its name.

    Declaration
    public LevelElement FindLevelElementByName(string levelName)
    Parameters
    Type Name Description
    System.String levelName

    The name of the level.

    Returns
    Type Description
    LevelElement

    A LevelElement.

    OnInsertComplete(Int32, Object)

    Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.

    Declaration
    protected override void OnInsertComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which to insert value.

    System.Object value

    The new value of the element at index.

    Overrides
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)

    OnSetComplete(Int32, Object, Object)

    Performs additional custom processes after setting a value in the System.Collections.CollectionBase instance.

    Declaration
    protected override void OnSetComplete(int index, object oldValue, object newValue)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index at which oldValue can be found.

    System.Object oldValue

    The value to replace with newValue.

    System.Object newValue

    The new value of the element at index.

    Overrides
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)

    Remove(LevelElement)

    Removes the specified level element.

    Declaration
    public void Remove(LevelElement levelElement)
    Parameters
    Type Name Description
    LevelElement levelElement

    The level element which is to be removed.

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    ICloneable<T>

    Extension Methods

    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved