Table of Contents

Class AxisField

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

Represents a Dimension

public class AxisField : ContainerField

Inheritance

objectContainerFieldAxisField

Derived

MeasuresField, SubGroupField

Inherited Members

ContainerField.alignment, ContainerField.bindCaptionWidth, ContainerField.caption, ContainerField.captionWidth, ContainerField.container, ContainerField.name, ContainerField.Alignment, ContainerField.BindCaptionWidth, ContainerField.Caption, ContainerField.CaptionWidth, ContainerField.DisplayFormat, ContainerField.Index, ContainerField.Name, ContainerField.Width, ContainerField.BeginUpdate(), ContainerField.EndUpdate(), ContainerField.Load(XmlItem, int), ContainerField.Save(XmlItem), ContainerField.FullRebuildChanged(), ContainerField.FullRedrawChanged(), ContainerField.LightRedrawChanged()

Constructors

AxisField(Slice)

Creates a new instance.

public AxisField(Slice slice)

Parameters

slice Slice

AxisField(Slice, SliceField, string, string)

Creates a new instnace.

public AxisField(Slice slice, SliceField sliceField, string name, string caption)

Parameters

slice Slice

sliceField SliceField

name string

caption string

Fields

isMeasuresField

Indicates that field is measures.

protected bool isMeasuresField

Field Value

bool

isSubGroup

Indicates that is sub group.

protected bool isSubGroup

Field Value

bool

Properties

AdditionalTotalFunctions

Additional totals array

public AdditionalTotalFunctions AdditionalTotalFunctions { get; }

Property Value

AdditionalTotalFunctions

CalculateTotalEvent

Gets or sets a script method name that will be used to handle the FastReport.Olap.Slice.AxisField.CalculateTotal event.

public string CalculateTotalEvent { get; set; }

Property Value

string

Remarks

See the FastReport.Olap.Slice.AxisField.CalculateTotal event for more details.

DataType

Gets data time or string type if the field is measures.

public DataType DataType { get; }

Property Value

DataType

DisplayFormat

Gets or sets display format.

public override FormatBase DisplayFormat { get; set; }

Property Value

FormatBase

ExpressionTotals

Gets or sets an expression that calculates total values.

public string ExpressionTotals { get; set; }

Property Value

string

GroupsCount

Number of groups in dimension

public virtual int GroupsCount { get; }

Property Value

int

HasGroups

True if dimension has groups

public virtual bool HasGroups { get; }

Property Value

bool

IsMeasuresField

True if field is a vritual "Measures" dimension

public bool IsMeasuresField { get; }

Property Value

bool

IsSubGroup

True if field is a subgroup of another dimension

public bool IsSubGroup { get; }

Property Value

bool

ItemsContainer

Reference to container

public ItemsContainer ItemsContainer { get; }

Property Value

ItemsContainer

SliceField

Base slice field

public SliceField SliceField { get; }

Property Value

SliceField

SortDirection

Sorting direction

public SortDirection SortDirection { get; set; }

Property Value

SortDirection

TopNProcessor

Reference to TopN engine

public TopNProcessor TopNProcessor { get; }

Property Value

TopNProcessor

TotalPosition

Position of totals

public TotalPosition TotalPosition { get; set; }

Property Value

TotalPosition

UseTotalPositionFromMeasure

True if totals use position defined in Measure

public bool UseTotalPositionFromMeasure { get; set; }

Property Value

bool

Width

Width of field in Grid. Can be changed by user

public override int Width { get; set; }

Property Value

int

WidthSubGroup

Gets or sets width of subgroup.

public int WidthSubGroup { get; set; }

Property Value

int

Methods

GetExpressions()

Gets list of expressions.

public Expression[] GetExpressions()

Returns

Expression[]

GetGroupName(int)

Group name by group identifier

public virtual string GetGroupName(int groupId)

Parameters

groupId int

Group identifier

Returns

string

Group name

GetGroupNameByOrder(int)

Group name by position

public virtual string GetGroupNameByOrder(int index)

Parameters

index int

Position

Returns

string

Group name

InvokeEvent(string, object)

Invokes script event.

public void InvokeEvent(string name, object param)

Parameters

name string

Name of the event to invoke.

param object

Event parameters.

Remarks

Do not call this method directly. You should use it if you are developing a new aggregate function for FastCube.

Use this method to call an event handler that is located in the slice's script.

Load(XmlItem, int)

Loads from XML

public override void Load(XmlItem item, int version)

Parameters

item XmlItem

XML item to load from

version int

Format version

OnCalculateTotal(CalculateMeasureEventArgs)

Gets all expressions contained in the object.

public void OnCalculateTotal(CalculateMeasureEventArgs e)

Parameters

e CalculateMeasureEventArgs

Event data.

Remarks

Do not call this method directly.

This method is called by FastCube each time before building a slice. FastCube do this to collect all expressions and compile them.

Save(XmlItem)

Save to XML

public override void Save(XmlItem item)

Parameters

item XmlItem

XML item to save

SetGroupName(int, string)

Sets group name by group identifier

public virtual void SetGroupName(int groupId, string groupName)

Parameters

groupId int

Group identifier

groupName string

New name

SetGroupNameByOrder(int, string)

Sets group name by position

public virtual void SetGroupNameByOrder(int index, string groupName)

Parameters

index int

Position

groupName string

New name

CalculateTotal

Allows to calculate total value.

public event CalculateMeasureEventHandler CalculateTotal

Event Type

CalculateMeasureEventHandler