Show / Hide Table of Contents

Class MatrixCellDescriptor

The descriptor that is used to describe one matrix data cell.

Inheritance
System.Object
MatrixDescriptor
MatrixCellDescriptor
Implements
IFRSerializable
Inherited Members
MatrixDescriptor.Expression
MatrixDescriptor.TemplateColumn
MatrixDescriptor.TemplateRow
MatrixDescriptor.TemplateCell
MatrixDescriptor.Deserialize(FRReader)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Matrix
Assembly: FastReport.OpenSource.dll
Syntax
public class MatrixCellDescriptor : MatrixDescriptor, IFRSerializable
Remarks

The MatrixCellDescriptor class is used to define one data cell of the matrix. The key properties are Expression and Function. To set visual appearance of the data cell, use the TemplateCell property.

The collection of descriptors used to represent the matrix data cells is stored in the MatrixObject.Data.Cells property.

Constructors

MatrixCellDescriptor()

Initializes a new instance of the MatrixCellDescriptor class with default settings.

Declaration
public MatrixCellDescriptor()

MatrixCellDescriptor(String)

Initializes a new instance of the MatrixCellDescriptor class with specified expression.

Declaration
public MatrixCellDescriptor(string expression)
Parameters
Type Name Description
System.String expression

The descriptor's expression.

MatrixCellDescriptor(String, MatrixAggregateFunction)

Initializes a new instance of the MatrixCellDescriptor class with specified expression and aggregate function.

Declaration
public MatrixCellDescriptor(string expression, MatrixAggregateFunction function)
Parameters
Type Name Description
System.String expression

The descriptor's expression.

MatrixAggregateFunction function

The aggregate function.

MatrixCellDescriptor(String, MatrixAggregateFunction, MatrixPercent)

Initializes a new instance of the MatrixCellDescriptor class with specified expression, aggregate function, and a percent.

Declaration
public MatrixCellDescriptor(string expression, MatrixAggregateFunction function, MatrixPercent percent)
Parameters
Type Name Description
System.String expression

The descriptor's expression.

MatrixAggregateFunction function

The aggregate function.

MatrixPercent percent

The percent setting.

Properties

Function

Gets or sets an aggregate function used to calculate totals for this cell.

Declaration
public MatrixAggregateFunction Function { get; set; }
Property Value
Type Description
MatrixAggregateFunction

Percent

Gets or sets a value that determines how to calculate the percent value for this cell.

Declaration
public MatrixPercent Percent { get; set; }
Property Value
Type Description
MatrixPercent

Methods

Assign(MatrixDescriptor)

Assigns values from another descriptor.

Declaration
public override void Assign(MatrixDescriptor source)
Parameters
Type Name Description
MatrixDescriptor source

Descriptor to assign values from.

Overrides
MatrixDescriptor.Assign(MatrixDescriptor)

Serialize(FRWriter)

Serializes the object.

Declaration
public override void Serialize(FRWriter writer)
Parameters
Type Name Description
FRWriter writer

Writer object.

Overrides
MatrixDescriptor.Serialize(FRWriter)

Implements

IFRSerializable
Back to top Generated by DocFX