TableCell
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:
public sealed class TableCell : BlockContainerBase, IElementWithProperties
Inheritance: objectDocumentElementBaseBlockContainerBaseTableCell
Implements:
Inherited Members
Constructors
Initializes a new TableCell with default formatting and an empty block collection in the specified document.
public TableCell(RadFlowDocument document)
The document in which the element will be added.
Fields
BackgroundColorPropertyDefinition
StylePropertyDefinition<ThemableColor>
Style property definition for cell background fill color applied behind the cell content.
public static readonly StylePropertyDefinition<ThemableColor> BackgroundColorPropertyDefinition
Style property definition for cell borders, controlling the width, color, and pattern for each edge independently.
public static readonly StylePropertyDefinition<TableCellBorders> BordersPropertyDefinition
Style property definition for controlling whether cell content can wrap to multiple lines during table layout.
public static readonly StylePropertyDefinition<bool?> CanWrapContentPropertyDefinition
Style property definition for column span, validated to ensure positive values enabling horizontal cell merging.
public static readonly StylePropertyDefinition<int?> ColumnSpanPropertyDefinition
Style property definition for controlling whether the cell marker is excluded from row height calculations.
public static readonly StylePropertyDefinition<bool?> IgnoreCellMarkerInRowHeightCalculationPropertyDefinition
Style property definition for cell padding, controlling the space between cell borders and content.
public static readonly StylePropertyDefinition<Padding> PaddingPropertyDefinition
Style property definition for cell preferred width, supporting auto, fixed, and percentage-based width specifications.
public static readonly StylePropertyDefinition<TableWidthUnit> PreferredWidthPropertyDefinition
Style property definition for row span, validated to ensure positive values enabling vertical cell merging.
public static readonly StylePropertyDefinition<int?> RowSpanPropertyDefinition
ShadingPatternColorPropertyDefinition
StylePropertyDefinition<ThemableColor>
Style property definition for shading pattern color, controlling the foreground color used in patterned cell backgrounds.
public static readonly StylePropertyDefinition<ThemableColor> ShadingPatternColorPropertyDefinition
Style property definition for shading pattern, controlling the fill pattern applied to the cell background.
public static readonly StylePropertyDefinition<ShadingPattern?> ShadingPatternPropertyDefinition
Style property definition for text layout direction within the cell, controlling horizontal, vertical, or rotated text flow.
public static readonly StylePropertyDefinition<TextDirection> TextDirectionPropertyDefinition
Style property definition for vertical positioning of content within the cell height.
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.
Creates a deep copy of this cell including all blocks and formatting properties, associated to the specified document for cross-document copying.
public TableCell Clone(RadFlowDocument document)
The document to which the cloned element should be associated.
Returns:The cloned element.
Properties
Border styles for this cell's edges, controlling width, color, and pattern for each side independently.
public TableCellBorders Borders { get; set; }
The borders.
Controls whether content can wrap to multiple lines during table layout; when false, content remains on a single line expanding cell width.
public bool CanWrapContent { get; set; }
The default value is true.
Number of grid columns this cell spans horizontally, enabling merged cells across multiple columns.
public int ColumnSpan { get; set; }
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.
public int GridColumnIndex { get; }
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.
public int GridRowIndex { get; }
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.
public bool IgnoreCellMarkerInRowHeightCalculation { get; set; }
The default value is false.
Space between the cell borders and its content, overriding the table's default cell padding when set.
public Padding Padding { get; set; }
The table cell padding.
Preferred width specification for this cell, supporting auto, fixed, and percentage-based widths relative to the table.
public TableWidthUnit PreferredWidth { get; set; }
The preferred width.
Cell formatting properties, providing access to borders, padding, vertical alignment, span settings, and text direction.
public TableCellProperties Properties { get; }
The properties.
Parent row containing this cell, providing access to row-level formatting and sibling cells.
public TableRow Row { get; }
The row.
Number of grid rows this cell spans vertically, enabling merged cells across multiple rows.
public int RowSpan { get; set; }
The default value is 1.
Background shading applied to this cell, controlling fill color, pattern, and pattern color behind the cell content.
public Shading Shading { get; }
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.
public Table Table { get; }
The table.
Text layout direction within the cell, controlling horizontal, vertical, or rotated text flow.
public TextDirection TextDirection { get; set; }
The text direction.
Vertical positioning of content within the cell height, controlling top, center, or bottom alignment.
public VerticalAlignment VerticalAlignment { get; set; }
The default value is Top.