[]
        
(Showing Draft Content)

C1.C1Preview.TableCell

TableCell Class

Represents a cell in a RenderTable.

Inheritance
TableCell
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.4.8.dll
Syntax
[C1ClassSerialization(true)]
public class TableCell : IComparable, IStyleOwner, IDocumentLocation

Properties

Name Description
Area

Gets the RenderArea contained in the current cell.

Bounds

Gets a Rectangle describing the geometry of the current cell in the table.

The location of the returned rectangle defines the location (column and row) of the current cell, while its size defines the number of columns and rows spanned by the current cell.

CellStyle

Gets the Style that is used to render the content of the current cell.

Col

Gets the 0-based index in the table of the column containing the current cell.

HorzSplitBehavior

Gets or sets a value indicating how the content of the current cell is treated when the cell is split vertically between two horizontal (extension, created when the document is too wide) pages. (CanSplit should be true for this to happen).

Image

Gets or sets the image contained in the current cell.

LastCol

Gets the index of the last column spanned by the current cell. If SpanCols is 1, the value of this property is equal to Col.

LastRow

Gets the index of the last row spanned by the current cell. If SpanRows is 1, the value of this property is equal to Row.

Owner

Gets the TableCellCollection containing the current cell.

RenderObject

Gets or sets the RenderObject contained in the current cell.

RepeatGridLinesHorz

Gets or sets a value indicating whether vertical gridlines should be drawn when the cell is split between two horizontal (extension, created when the document is too wide) pages.

RepeatGridLinesVert

Gets or sets a value indicating whether horizontal gridlines should be drawn when the cell is split between two vertical (regular) pages.

Row

Gets the 0-based index in the table of the row containing the current cell.

SpanCols

Gets or sets the number of columns spanned by the current cell. Cannot be less than 1, which is the default.

SpanRows

Gets or sets the number of rows spanned by the current cell. Cannot be less than 1, which is the default.

Style

Gets the Style of the current cell.

Table

Gets the RenderTable containing the current cell.

Tag

Gets or sets arbitrary data associated with the current cell.

Text

Gets or sets the text contained in the current cell.

VertSplitBehavior

Gets or sets a value indicating how the content of the current cell is treated when the cell is split horizontally between two vertical (regular) pages (CanSplit should be true for this to happen).

Methods

Name Description
AssignFrom(TableCell)

Assigns (copies) properties from another TableCell to the current object. The Row and Col properties are not copied. A "deep" copy of the RenderObject is made, i.e. a copy of the RenderObject is created and assigned to the newly created cell's RenderObject property.

IsVisible()

Determines whether the current cell is visible in the containing table. A cell is visible if it spans at least one visible row and column (see Visible).

ShouldSerializeCellStyle()

Indicates whether the CellStyle property should be serialized.

ShouldSerializeStyle()

Indicates whether the Style property should be serialized.

See Also