Table of Contents

Class Measures

Namespace: FastReport.Olap.Code
Assembly: FastCube.Core.dll

Measures for slice.

public class Measures : ScriptItems

Inheritance

objectCollectionBaseScriptItemsMeasures

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

int

CurrentMeasureName

Name of measure for current cell

public string CurrentMeasureName { get; }

Property Value

string

RecordCount

Details records count

public int RecordCount { get; }

Property Value

int

XLevel

X axis level index for current cell

public int XLevel { get; }

Property Value

int

YLevel

Y axis level index for current cell

public int YLevel { get; }

Property Value

int

this[int]

Get Measure by index

public Measure this[int index] { get; }

Property Value

Measure

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

object

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

Measure

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

Measure of null if name not found