Class MatrixData
Contains a set of properties and methods to hold and manipulate the matrix descriptors.
Inheritance
Namespace: FastReport.AdvMatrix
Assembly: FastReport.dll
Syntax
public class MatrixData
Remarks
This class contains two collections of descriptors such as Columns and Rows. Use collections' methods to add/remove descriptors. When you are done, call the BuildTemplate() method to refresh the matrix.
Constructors
MatrixData(AdvMatrixObject)
Initializes a new instance of the MatrixData class.
Declaration
public MatrixData(AdvMatrixObject matrix)
Parameters
Type | Name | Description |
---|---|---|
AdvMatrixObject | matrix | Reference to owner matrix. |
Properties
Columns
Gets a collection of column descriptors.
Declaration
public MatrixHeader Columns { get; }
Property Value
Type | Description |
---|---|
MatrixHeader |
Remarks
Note: after you add or remove items in this collection, call the BuildTemplate() method to refresh the matrix.
Context
Gets context required for aggregate calculation.
Declaration
public Context Context { get; }
Property Value
Type | Description |
---|---|
Context |
Rows
Gets a collection of row descriptors.
Declaration
public MatrixHeader Rows { get; }
Property Value
Type | Description |
---|---|
MatrixHeader |
Remarks
Note: after you add or remove items in this collection, call the BuildTemplate() method to refresh the matrix.
Methods
ProcessDataRow()
Processes single data row.
Declaration
public void ProcessDataRow()
Remarks
This method is used internally to process current data row. The matrix fills the column, row and cell data. You should use this method if you fill a matrix in code using ManualBuild event.
Reset()
Resets the data from the previous report run.
Declaration
public void Reset()