Class CellularTextObject
Represents a text object which draws each symbol of text in its own cell.
Inheritance
Implements
Inherited Members
Namespace: FastReport
Assembly: FastReport.Base.dll
Syntax
public class CellularTextObject : TextObject, IFRSerializable
Remarks
The text may be aligned to left or right side, or centered. Use the HorzAlign property to do this. The "justify" align is not supported now, as well as vertical alignment.
The cell size is defined in the CellWidth and CellHeight properties. These properties are 0 by default, in this case the size of cell is calculated automatically based on the object's Font.
To define a spacing (gap) between cells, use the HorzSpacing and VertSpacing properties.
Constructors
CellularTextObject()
Initializes a new instance of the CellularTextObject class with the default settings.
Declaration
public CellularTextObject()
Properties
CellHeight
Gets or sets the height of cell, in pixels.
Declaration
public float CellHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
If zero width and/or height specified, the object will calculate the cell size automatically based on its font.
CellWidth
Gets or sets the width of cell, in pixels.
Declaration
public float CellWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Remarks
If zero width and/or height specified, the object will calculate the cell size automatically based on its font.
HorzSpacing
Gets or sets the horizontal spacing between cells, in pixels.
Declaration
public float HorzSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
VertSpacing
Gets or sets the vertical spacing between cells, in pixels.
Declaration
public float VertSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Assign(Base)
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source |
Overrides
CalcHeight()
Declaration
public override float CalcHeight()
Returns
Type | Description |
---|---|
System.Single |
Overrides
Draw(FRPaintEventArgs)
Declaration
public override void Draw(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e |
Overrides
GetTable()
Declaration
public TableObject GetTable()
Returns
Type | Description |
---|---|
TableObject |
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |