Table of Contents

Class GroupsManager

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

Manager for groups.

public class GroupsManager

Inheritance

objectGroupsManager

Constructors

GroupsManager(CubeField)

Creates a new instance.

public GroupsManager(CubeField cubeField)

Parameters

cubeField CubeField

Properties

ExistsOtherGroup

Gets condition that other group is exists.

public bool ExistsOtherGroup { get; }

Property Value

bool

GetOtherGroupIndex

Gets other group index.

public int GetOtherGroupIndex { get; }

Property Value

int

GroupsCount

Gets number of groups.

public int GroupsCount { get; }

Property Value

int

OtherGroup

Gets other group.

public Group OtherGroup { get; }

Property Value

Group

Methods

AddUniqueValueIdToGroup(int, Group)

Adds unique value id to the group.

public void AddUniqueValueIdToGroup(int valueId, Group group)

Parameters

valueId int

group Group

Append(CubeReader)

Append group from stream.

public void Append(CubeReader reader)

Parameters

reader CubeReader

BeginUpdate()

Begin update operation. Prevents notifying parent about any changes during the update operation.

public void BeginUpdate()

CreateGroup(string)

Creates a new group with specified name.

public Group CreateGroup(string name)

Parameters

name string

Returns

Group

CreateGroupByRange(string, Ranges)

Creeates a new group with specified name and setup range.

public Group CreateGroupByRange(string name, Ranges range)

Parameters

name string

range Ranges

Returns

Group

CreateOtherGroup(string)

Creates a new other group.

public Group CreateOtherGroup(string name)

Parameters

name string

Returns

Group

EndUpdate()

Finish update operation.

public void EndUpdate()

GetGroupById(int)

Gets group by id.

public Group GetGroupById(int groupId)

Parameters

groupId int

Returns

Group

GetGroupByName(string)

Gets group by name.

public Group GetGroupByName(string name)

Parameters

name string

Returns

Group

GetGroupByOrder(int)

Gets group by order (by index).

public Group GetGroupByOrder(int index)

Parameters

index int

Returns

Group

GetGroupIdOfUniqieValueId(int)

Get group id by unique value id.

public int GetGroupIdOfUniqieValueId(int valueId)

Parameters

valueId int

Returns

int

GetGroupedValuesCount()

Gets number of grouped values.

public int GetGroupedValuesCount()

Returns

int

GetNotOtherGroupedValuesCount()

Gets number of not other groupped values.

public int GetNotOtherGroupedValuesCount()

Returns

int

GetUnGroupedValueId(int)

Get ungrouped value id by index.

public int GetUnGroupedValueId(int index)

Parameters

index int

Returns

int

GetUnGroupedValuesCount()

Gets number of ungrouped values.

public int GetUnGroupedValuesCount()

Returns

int

Load(CubeReader)

Loads group from stream.

public void Load(CubeReader reader)

Parameters

reader CubeReader

RemoveGroup(Group)

Removes group.

public void RemoveGroup(Group group)

Parameters

group Group

RemoveGroupById(int)

Removes group by id.

public void RemoveGroupById(int groupId)

Parameters

groupId int

RemoveGroupByName(string)

Removes group by name.

public void RemoveGroupByName(string name)

Parameters

name string

RemoveGroupByOrder(int)

Removes group by order (by index).

public void RemoveGroupByOrder(int index)

Parameters

index int

RemoveOtherGroup()

Removes other group.

public void RemoveOtherGroup()

RemoveUniqueValueIdFromGroup(int)

removes unique value id from the group.

public void RemoveUniqueValueIdFromGroup(int valueId)

Parameters

valueId int

Save(CubeWriter)

Saves to the stream.

public void Save(CubeWriter writer)

Parameters

writer CubeWriter