Class Measures
Namespace: FastReport.Olap.Code
Assembly: FastCube.Core.dll
Measures for slice.
public class Measures : ScriptItems
Inheritance
object ← CollectionBase ← ScriptItems ← Measures
Inherited Members
ScriptItems.Col, ScriptItems.Row, ScriptItems.this[int], ScriptItems.IndexOf(string)
Constructors
Measures(Slice)
Creates a new instance by slice.
public Measures(Slice slice)
Parameters
slice
Slice
Properties
CurrentMeasureIndex
Index of measure for current cell
public int CurrentMeasureIndex { get; }
Property Value
CurrentMeasureName
Name of measure for current cell
public string CurrentMeasureName { get; }
Property Value
RecordCount
Details records count
public int RecordCount { get; }
Property Value
XLevel
X axis level index for current cell
public int XLevel { get; }
Property Value
YLevel
Y axis level index for current cell
public int YLevel { get; }
Property Value
this[int]
Get Measure by index
public Measure this[int index] { get; }
Property Value
Methods
GetDetailValue(int, string)
Detail value
public object GetDetailValue(int detailRecordIndex, string fieldName)
Parameters
detailRecordIndex
int
detail record index
fieldName
string
name of field in record
Returns
value or null if detailRecordIndex is out of bounds or field is not found
GetItemByCaption(string)
Search Measure by caption
public Measure GetItemByCaption(string caption)
Parameters
caption
string
caption to search
Returns
first Measure with required caption or null if not found
GetItemByName(string)
Search Measure by name
public Measure GetItemByName(string name)
Parameters
name
string
name to search
Returns
Measure of null if name not found