Class KpiCollection
A Collection of KPI objects
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Olap.Data
Assembly: Syncfusion.Olap.Base.dll
Syntax
public class KpiCollection : CollectionBase, IList, ICollection, IEnumerable<Kpi>, IEnumerable
Constructors
KpiCollection()
Initializes a new instance of the KpiCollection class.
Declaration
public KpiCollection()
KpiCollection(CubeSchema)
Initializes a new instance of the KpiCollection class.
Declaration
public KpiCollection(CubeSchema parent_CubeSchema)
Parameters
Type | Name | Description |
---|---|---|
CubeSchema | parent_CubeSchema | The parent cube schema. |
Properties
Item[Int32]
Gets or sets the Kpi at the specified index.
Declaration
public Kpi this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the KPI. |
Property Value
Type |
---|
Kpi |
Methods
Add(Kpi)
Adds the specified KPI.
Declaration
public int Add(Kpi kpi)
Parameters
Type | Name | Description |
---|---|---|
Kpi | kpi | The KPI which is to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the KPI object in the current collection. |
Contains(Kpi)
Determines whether the collection contains specified KPI.
Declaration
public bool Contains(Kpi kpi)
Parameters
Type | Name | Description |
---|---|---|
Kpi | kpi | The KPI object which is to be searched. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CopyTo(Kpi[], Int32)
Copies all the elements of the current collection to the specified one-dimensional array.
Declaration
public void CopyTo(Kpi[] kpiArray, int index)
Parameters
Type | Name | Description |
---|---|---|
Kpi[] | kpiArray | 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 KPI by its name
Declaration
public Kpi FindByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the KPI. |
Returns
Type | Description |
---|---|
Kpi | The KPI object. |
FindByUniqueName(String)
Finds the KPI by its unique name
Declaration
public Kpi FindByUniqueName(string uniqueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uniqueName | The unique name of the KPI. |
Returns
Type | Description |
---|---|
Kpi | The KPI object. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Kpi> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Kpi> | A System.Collections.Generic.IEnumerator<> that can be used to iterate through the collection. |
IndexOf(Kpi)
Gets the index of the specified KPI.
Declaration
public int IndexOf(Kpi kpi)
Parameters
Type | Name | Description |
---|---|---|
Kpi | kpi | The KPI. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the KPI in the collection. |
Insert(Int32, Kpi)
Inserts the KPI at specified index.
Declaration
public void Insert(int index, Kpi kpi)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index at which the KPI has to be inserted. |
Kpi | kpi | The KPI 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(Kpi)
Removes the specified KPI.
Declaration
public void Remove(Kpi kpi)
Parameters
Type | Name | Description |
---|---|---|
Kpi | kpi | The KPI 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 overridable.
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 |
|