Class LevelElementCollection
Represents the collection of level elements.
Inheritance
Namespace: Syncfusion.Olap.UWP.Reports
Assembly: Syncfusion.Olap.UWP.dll
Syntax
public class LevelElementCollection : Collection<LevelElement>
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[String]
Gets the LevelElement with the specified name.
Declaration
public LevelElement this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The level element name. |
Property Value
Type | Description |
---|---|
LevelElement |
Methods
Add(LevelElement)
Adds the specified level element.
Declaration
public void Add(LevelElement levelElement)
Parameters
Type | Name | Description |
---|---|---|
LevelElement | levelElement | The level element to be added. |
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. |
InsertItem(Int32, LevelElement)
Inserts an element into the System.Collections.ObjectModel.Collection<> at the specified index.
Declaration
protected override void InsertItem(int index, LevelElement item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which item should be inserted. |
LevelElement | item | The object to insert. The value can be null for reference types. |
SetItem(Int32, LevelElement)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, LevelElement item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to replace. |
LevelElement | item | The new value for the element at the specified index. The value can be null for reference types. |