Class TableCellData
Represents data of the table cell.
Inheritance
Implements
Inherited Members
Namespace: FastReport.Table
Assembly: FastReport.OpenSource.dll
Syntax
public class TableCellData : IDisposableConstructors
TableCellData()
Initializes a new instance of the TableCellData class.
Declaration
public TableCellData()Properties
Address
Gets or sets the address of the table cell.
Declaration
public Point Address { get; set; }Property Value
| Type | Description | 
|---|---|
| Point | 
Cell
Gets the table cell.
Declaration
public TableCell Cell { get; }Property Value
| Type | Description | 
|---|---|
| TableCell | 
ColSpan
Gets or sets column span of the table cell.
Declaration
public int ColSpan { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Height
Gets height of the table cell.
Declaration
public float Height { get; }Property Value
| Type | Description | 
|---|---|
| System.Single | 
HyperlinkValue
Gets or sets hyperlink value of the table cell.
Declaration
public string HyperlinkValue { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Objects
Gets or sets objects collection of the cell.
Declaration
public ReportComponentCollection Objects { get; set; }Property Value
| Type | Description | 
|---|---|
| ReportComponentCollection | 
OriginalCell
Gets original the table cell.
Declaration
public TableCell OriginalCell { get; }Property Value
| Type | Description | 
|---|---|
| TableCell | 
RowSpan
Gets or sets row span of the table cell.
Declaration
public int RowSpan { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Style
Gets style of table cell.
Declaration
public TableCell Style { get; }Property Value
| Type | Description | 
|---|---|
| TableCell | 
Table
Gets or sets parent table of the cell.
Declaration
public TableBase Table { get; set; }Property Value
| Type | Description | 
|---|---|
| TableBase | 
Text
Gets or sets text of the table cell.
Declaration
public string Text { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | 
Value
Gets or sets value of the table cell.
Declaration
public object Value { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Object | 
Width
Gets width of the table cell.
Declaration
public float Width { get; }Property Value
| Type | Description | 
|---|---|
| System.Single | 
Methods
Assign(TableCellData)
Assigns another TableCellData instance.
Declaration
public void Assign(TableCellData source)Parameters
| Type | Name | Description | 
|---|---|---|
| TableCellData | source | The table cell data that used as a source. | 
Remarks
This method is called when we copy cells or clone columns/rows in a designer.
AttachCell(TableCell)
Attaches the specified table cell.
Declaration
public void AttachCell(TableCell cell)Parameters
| Type | Name | Description | 
|---|---|---|
| TableCell | cell | The table cell instance. | 
Remarks
This method is called when we load the table.
CalcHeight(Single)
Calculates height of the table cell.
Declaration
public float CalcHeight(float width)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | width | The width of the table cell. | 
Returns
| Type | Description | 
|---|---|
| System.Single | The value of the table cell height. | 
CalcWidth()
Calculates width of the table cell.
Declaration
public float CalcWidth()Returns
| Type | Description | 
|---|---|
| System.Single | The value of the table cell width. | 
Dispose()
Disposes the TableCellData instance.
Declaration
public void Dispose()RunTimeAssign(TableCell, Boolean)
Assigns another TableCellData instance at run time.
Declaration
public void RunTimeAssign(TableCell cell, bool copyChildren)Parameters
| Type | Name | Description | 
|---|---|---|
| TableCell | cell | The table cell data that used as a source. | 
| System.Boolean | copyChildren | This flag shows should children be copied or not. | 
Remarks
This method is called when we print a table. We should create a copy of the cell and set the style.
SetStyle(TableCell)
Sets style of the table cell.
Declaration
public void SetStyle(TableCell style)Parameters
| Type | Name | Description | 
|---|---|---|
| TableCell | style | The new style of the table cell. | 
UpdateLayout(Single, Single, Single, Single)
Updates layout of the table cell.
Declaration
public void UpdateLayout(float width, float height, float dx, float dy)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | width | The width of the table cell. | 
| System.Single | height | The height of the table cell. | 
| System.Single | dx | The new value of x coordinate. | 
| System.Single | dy | The new value of y coordinate. |