Class LevelCollection
Collection of Level objects
Inheritance
System.Object
LevelCollection
Namespace: Syncfusion.Olap.UWP.Data
Assembly: Syncfusion.Olap.UWP.dll
Syntax
public class LevelCollection : Collection<Level>
Constructors
LevelCollection()
Initializes a new instance of the LevelCollection class.
Declaration
public LevelCollection()
LevelCollection(Hierarchy)
Initializes a new instance of the LevelCollection class.
Declaration
public LevelCollection(Hierarchy parentHierarchy)
Parameters
| Type | Name | Description |
|---|---|---|
| Hierarchy | parentHierarchy | The parent hierarchy. |
Methods
FindByName(String)
Finds the level by its name.
Declaration
public Level FindByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the level. |
Returns
| Type | Description |
|---|---|
| Level | The level object. |
FindByUniqueName(String)
Finds the level by its unique name.
Declaration
public Level FindByUniqueName(string uniqueName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | uniqueName | The unique name of the level. |
Returns
| Type | Description |
|---|---|
| Level | The level object. |
InsertItem(Int32, Level)
Inserts an element into the System.Collections.ObjectModel.Collection<> at the specified index.
Declaration
protected override void InsertItem(int index, Level item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which item should be inserted. |
| Level | item | The object to insert. The value can be null for reference types. |
SetItem(Int32, Level)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, Level item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to replace. |
| Level | item | The new value for the element at the specified index. The value can be null for reference types. |