Table of Contents

Class CubeFields

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

Continaer for cube fields

public class CubeFields

Inheritance

objectCubeFields

Constructors

CubeFields(Cube)

Creates a new instnace for cube.

public CubeFields(Cube cube)

Parameters

cube Cube

Properties

ComparerType

Gets or sets type of comparer.

public FieldComparerType ComparerType { get; set; }

Property Value

FieldComparerType

Count

Gets number of children.

public int Count { get; }

Property Value

int

Methods

Add(DataType, string, string)

Adds a new field with specified type, name and caption.

public int Add(DataType dataType, string name, string caption)

Parameters

dataType DataType

name string

caption string

Returns

int

Add(DataType, string)

Adds a new field with specified type and name.

public int Add(DataType dataType, string name)

Parameters

dataType DataType

name string

Returns

int

Remarks

Caption equals name.

Add(CubeField)

Adds the field.

public int Add(CubeField cubeField)

Parameters

cubeField CubeField

Returns

int

Add(Type, string, string)

Adds a new field with spcified type, name and caption.

public int Add(Type dataType, string name, string caption = null)

Parameters

dataType Type

name string

caption string

Returns

int

Remarks

if caption is null, caption equals name.

AddDataSetField(BaseField, CubeField)

Add a new dataset field.

public int AddDataSetField(BaseField dsField, CubeField parent)

Parameters

dsField BaseField

parent CubeField

Returns

int

BuildTree()

Builds a tree.

public Tree BuildTree()

Returns

Tree

GetFieldByIndex(int)

Gets field by index.

public CubeField GetFieldByIndex(int index)

Parameters

index int

Returns

CubeField

GetFieldByName(string)

Gets field by name.

public CubeField GetFieldByName(string name)

Parameters

name string

Returns

CubeField

GetFieldByOrder(int)

Gets field by order (by index).

public CubeField GetFieldByOrder(int index)

Parameters

index int

Returns

CubeField

GetFieldIndex(string)

Gets field index by name.

public int GetFieldIndex(string name)

Parameters

name string

Returns

int

Reindex()

Index sort with specified comparer.

public void Reindex()