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