Class LevelCollection
Collection of Level objects
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Olap.Data
Assembly: Syncfusion.Olap.Base.dll
Syntax
public class LevelCollection : CollectionBase, IList, ICollection, IEnumerable<Level>, IEnumerable
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 parent_Hierarchy)
Parameters
Type | Name | Description |
---|---|---|
Hierarchy | parent_Hierarchy | The parent hierarchy. |
Properties
Item[Int32]
Gets or sets the Level at the specified index.
Declaration
public Level this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the level. |
Property Value
Type |
---|
Level |
Methods
Add(Level)
Adds the specified level.
Declaration
public int Add(Level level)
Parameters
Type | Name | Description |
---|---|---|
Level | level | The level which is to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the level object in the current collection. |
Contains(Level)
Determines whether the collection contains specified level.
Declaration
public bool Contains(Level level)
Parameters
Type | Name | Description |
---|---|---|
Level | level | The level object which is to be searched. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CopyTo(Level[], Int32)
Copies all the elements of the current collection to the specified one-dimensional array.
Declaration
public void CopyTo(Level[] levelArray, int index)
Parameters
Type | Name | Description |
---|---|---|
Level[] | levelArray | The one-dimensional array that is the destination of the elements copied from the current array. |
System.Int32 | index | The index in array at which copying begins. |
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. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Level> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Level> | A System.Collections.Generic.IEnumerator<> that can be used to iterate through the collection. |
IndexOf(Level)
Gets the index of the specified level.
Declaration
public int IndexOf(Level level)
Parameters
Type | Name | Description |
---|---|---|
Level | level | The level. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the level in the collection. |
Insert(Int32, Level)
Inserts the level at specified index.
Declaration
public void Insert(int index, Level level)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index at which the level has to be inserted. |
Level | level | The level object which is to be inserted. |
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 |
System.Object | value | The new value of the element at |
Overrides
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 |
System.Object | oldValue | The value to replace with |
System.Object | newValue | The new value of the element at |
Overrides
Remove(Level)
Removes the specified level.
Declaration
public void Remove(Level level)
Parameters
Type | Name | Description |
---|---|---|
Level | level | The level object which is to be removed. |
RemoveAt(Int32)
Removes the element at the specified index of the System.Collections.CollectionBase instance. This method is not over ridable.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|