New to Telerik Document ProcessingStart a free 30-day trial

Cell within a table grid containing block-level content, supporting row/column spanning, borders, padding, vertical alignment, and text direction.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public sealed class TableCell : BlockContainerBase, IElementWithProperties

Inheritance: objectDocumentElementBaseBlockContainerBaseTableCell

Implements: IElementWithProperties

Inherited Members BlockContainerBase.BlocksDocumentElementBase.EnumerateChildrenOfType<T>()DocumentElementBase.DocumentDocumentElementBase.Parent

Constructors

Initializes a new TableCell with default formatting and an empty block collection in the specified document.

C#
public TableCell(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document in which the element will be added.

Fields

Style property definition for cell background fill color applied behind the cell content.

C#
public static readonly StylePropertyDefinition<ThemableColor> BackgroundColorPropertyDefinition

Style property definition for cell borders, controlling the width, color, and pattern for each edge independently.

C#
public static readonly StylePropertyDefinition<TableCellBorders> BordersPropertyDefinition

Style property definition for controlling whether cell content can wrap to multiple lines during table layout.

C#
public static readonly StylePropertyDefinition<bool?> CanWrapContentPropertyDefinition

Style property definition for column span, validated to ensure positive values enabling horizontal cell merging.

C#
public static readonly StylePropertyDefinition<int?> ColumnSpanPropertyDefinition

Style property definition for controlling whether the cell marker is excluded from row height calculations.

C#
public static readonly StylePropertyDefinition<bool?> IgnoreCellMarkerInRowHeightCalculationPropertyDefinition

Style property definition for cell padding, controlling the space between cell borders and content.

C#
public static readonly StylePropertyDefinition<Padding> PaddingPropertyDefinition

Style property definition for cell preferred width, supporting auto, fixed, and percentage-based width specifications.

C#
public static readonly StylePropertyDefinition<TableWidthUnit> PreferredWidthPropertyDefinition

Style property definition for row span, validated to ensure positive values enabling vertical cell merging.

C#
public static readonly StylePropertyDefinition<int?> RowSpanPropertyDefinition

Style property definition for shading pattern color, controlling the foreground color used in patterned cell backgrounds.

C#
public static readonly StylePropertyDefinition<ThemableColor> ShadingPatternColorPropertyDefinition

Style property definition for shading pattern, controlling the fill pattern applied to the cell background.

C#
public static readonly StylePropertyDefinition<ShadingPattern?> ShadingPatternPropertyDefinition

Style property definition for text layout direction within the cell, controlling horizontal, vertical, or rotated text flow.

C#
public static readonly StylePropertyDefinition<TextDirection> TextDirectionPropertyDefinition

Style property definition for vertical positioning of content within the cell height.

C#
public static readonly StylePropertyDefinition<VerticalAlignment?> VerticalAlignmentPropertyDefinition

Methods

Creates a deep copy of this cell including all blocks and formatting properties, associated to the same document.

C#
public TableCell Clone()
Returns:

TableCell

The cloned element.

Creates a deep copy of this cell including all blocks and formatting properties, associated to the specified document for cross-document copying.

C#
public TableCell Clone(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document to which the cloned element should be associated.

Returns:

TableCell

The cloned element.

Properties

Border styles for this cell's edges, controlling width, color, and pattern for each side independently.

C#
public TableCellBorders Borders { get; set; }
Property Value:

The borders.

Controls whether content can wrap to multiple lines during table layout; when false, content remains on a single line expanding cell width.

C#
public bool CanWrapContent { get; set; }
Property Value:

The default value is true.

Number of grid columns this cell spans horizontally, enabling merged cells across multiple columns.

C#
public int ColumnSpan { get; set; }
Property Value:

The default value is 1.

Zero-based column index of this cell in the table grid, automatically calculated based on cell positions and column spans.

C#
public int GridColumnIndex { get; }
Property Value:

The column index of the cell in the table grid.

Zero-based row index of this cell in the table grid, automatically calculated based on cell positions and row spans.

C#
public int GridRowIndex { get; }
Property Value:

The row index of the cell in the table grid.

Controls whether the cell marker (end-of-cell character) is excluded from row height calculations, affecting minimum row sizing.

C#
public bool IgnoreCellMarkerInRowHeightCalculation { get; set; }
Property Value:

The default value is false.

Space between the cell borders and its content, overriding the table's default cell padding when set.

C#
public Padding Padding { get; set; }
Property Value:

The table cell padding.

Preferred width specification for this cell, supporting auto, fixed, and percentage-based widths relative to the table.

C#
public TableWidthUnit PreferredWidth { get; set; }
Property Value:

The preferred width.

Cell formatting properties, providing access to borders, padding, vertical alignment, span settings, and text direction.

C#
public TableCellProperties Properties { get; }
Property Value:

The properties.

Parent row containing this cell, providing access to row-level formatting and sibling cells.

C#
public TableRow Row { get; }
Property Value:

The row.

Number of grid rows this cell spans vertically, enabling merged cells across multiple rows.

C#
public int RowSpan { get; set; }
Property Value:

The default value is 1.

Background shading applied to this cell, controlling fill color, pattern, and pattern color behind the cell content.

C#
public Shading Shading { get; }
Property Value:

The shading.

Parent table containing this cell, providing access to table-level formatting and the grid structure, or null if the cell is not yet in a row.

C#
public Table Table { get; }
Property Value:

The table.

Text layout direction within the cell, controlling horizontal, vertical, or rotated text flow.

C#
public TextDirection TextDirection { get; set; }
Property Value:

The text direction.

Vertical positioning of content within the cell height, controlling top, center, or bottom alignment.

C#
public VerticalAlignment VerticalAlignment { get; set; }
Property Value:

The default value is Top.