Class GroupsManager
Namespace: FastReport.Olap.Cube
Assembly: FastCube.Core.dll
Manager for groups.
public class GroupsManager
Inheritance
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
GetOtherGroupIndex
Gets other group index.
public int GetOtherGroupIndex { get; }
Property Value
GroupsCount
Gets number of groups.
public int GroupsCount { get; }
Property Value
OtherGroup
Gets other group.
public Group OtherGroup { get; }
Property Value
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
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
CreateOtherGroup(string)
Creates a new other group.
public Group CreateOtherGroup(string name)
Parameters
name
string
Returns
EndUpdate()
Finish update operation.
public void EndUpdate()
GetGroupById(int)
Gets group by id.
public Group GetGroupById(int groupId)
Parameters
groupId
int
Returns
GetGroupByName(string)
Gets group by name.
public Group GetGroupByName(string name)
Parameters
name
string
Returns
GetGroupByOrder(int)
Gets group by order (by index).
public Group GetGroupByOrder(int index)
Parameters
index
int
Returns
GetGroupIdOfUniqieValueId(int)
Get group id by unique value id.
public int GetGroupIdOfUniqieValueId(int valueId)
Parameters
valueId
int
Returns
GetGroupedValuesCount()
Gets number of grouped values.
public int GetGroupedValuesCount()
Returns
GetNotOtherGroupedValuesCount()
Gets number of not other groupped values.
public int GetNotOtherGroupedValuesCount()
Returns
GetUnGroupedValueId(int)
Get ungrouped value id by index.
public int GetUnGroupedValueId(int index)
Parameters
index
int
Returns
GetUnGroupedValuesCount()
Gets number of ungrouped values.
public int GetUnGroupedValuesCount()
Returns
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