Class CrossViewHeaderDescriptor
The descriptor that is used to describe one element of the CrossView header.
Implements
Inherited Members
Namespace: FastReport.CrossView
Assembly: FastReport.OpenSource.dll
Syntax
public class CrossViewHeaderDescriptor : CrossViewDescriptor, IFRSerializable
Remarks
The CrossViewHeaderDescriptor class is used to define one header element of the CrossView (either the column element or row element).
To set visual appearance of the element, use the TemplateCell property.
The collection of descriptors used to represent the CrossView header is stored in the CrossViewObject.Data.Columns and CrossViewObject.Data.Rows properties.
Constructors
CrossViewHeaderDescriptor()
Initializes a new instance of the CrossViewHeaderDescriptor class
Declaration
public CrossViewHeaderDescriptor()
CrossViewHeaderDescriptor(String, String, Boolean, Boolean, Boolean)
Initializes a new instance of the CrossViewHeaderDescriptor class
Declaration
public CrossViewHeaderDescriptor(string fieldName, string measureName, bool isTotal, bool isGrandTotal, bool isMeasure)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | The Field Name. |
System.String | measureName | The Measure Name. |
System.Boolean | isTotal | Indicates the "Total" element. |
System.Boolean | isGrandTotal | Indicates the "GrandTotal" element. |
System.Boolean | isMeasure | Indicates the "Measure" element. |
Properties
Cell
Gets the cell coordinate.
Declaration
public int Cell { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CellSize
Gets the size in cell coordinate.
Declaration
public int CellSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
FieldName
Gets the name of field in cube.
Declaration
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsGrandTotal
Gets a value indicating that this is the "GrandTotal" element.
Declaration
public bool IsGrandTotal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMeasure
Gets a value indicating that this is the "Measure" element.
Declaration
public bool IsMeasure { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTotal
Gets a value indicating that this is the "Total" element.
Declaration
public bool IsTotal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Level
Gets the level coordinate.
Declaration
public int Level { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LevelSize
Gets the size in level coordinate.
Declaration
public int LevelSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MeasureName
Gets the name of measure in cube.
Declaration
public string MeasureName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Assign(CrossViewDescriptor)
Assigns values from another descriptor.
Declaration
public override void Assign(CrossViewDescriptor source)
Parameters
Type | Name | Description |
---|---|---|
CrossViewDescriptor | source | Descriptor to assign values from. |
Overrides
Serialize(FRWriter)
Serializes the object.
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |