Class TopNs
Namespace: FastReport.Olap.Slice
Assembly: FastCube.Core.dll
Collection of TopN
public class TopNs
Inheritance
Constructors
TopNs(Slice)
Creates a new instance.
public TopNs(Slice slice)
Parameters
slice
Slice
Properties
ActiveCount
Get number of active TopNs
public int ActiveCount { get; }
Property Value
AsFilter
Gets indicator that object is as
filter.
public bool AsFilter { get; }
Property Value
Methods
BuildTree()
Create Tree with TopNs (for grid)
public Tree BuildTree()
Returns
Tree
ClearTopN()
Removes all TopN from all Axes
public void ClearTopN()
ClearTopNInAxis(AxisContainer)
Removes TopN from Axis
public void ClearTopNInAxis(AxisContainer axis)
Parameters
axis
AxisContainer
Axis where to remove TopNs
Dispose()
Dealocate resources
public void Dispose()
Load(XmlItem)
Load from XML
public void Load(XmlItem item)
Parameters
item
XmlItem
XML item
Save(XmlItem)
Save to XML
public void Save(XmlItem item)
Parameters
item
XmlItem
XML item
SetTopN(AxisField, MeasureField, TopType, int, bool)
Set TopN for Dimension
public void SetTopN(AxisField dimension, MeasureField measure, TopType topType, int topCount, bool createOthers)
Parameters
dimension
AxisField
Dimension for TopN
measure
MeasureField
Measure which is used for values
topType
TopType
Type of TopN (most/least)
topCount
int
Number of TopN values
createOthers
bool
Whether to create "other" cell