Class
TableCell

Content container inside a table with support for borders, padding, background, and row/column spanning.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Editing.Tables

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class TableCell

Inheritance: objectTableCell

Properties

Background

Gets or sets the background color painted behind the cell’s content; null uses the table default.

Declaration

cs-api-definition
public ColorBase Background { get; set; }

Property Value

ColorBase

The background color of the cell, or null for transparent background.

Blocks

Gets the collection of block elements (paragraphs, images, tables, shapes) composing the cell’s content.

Declaration

cs-api-definition
public BlockCollection Blocks { get; }

Property Value

BlockCollection

The collection of blocks that make up the cell's content.

Borders

Gets or sets the cell border definitions; can override the table’s default borders.

Declaration

cs-api-definition
public TableCellBorders Borders { get; set; }

Property Value

TableCellBorders

The cell border configuration including all four sides and diagonal borders.

ColumnSpan

Gets or sets how many columns the cell spans horizontally; values greater than 1 extend across multiple columns.

Declaration

cs-api-definition
public int ColumnSpan { get; set; }

Property Value

int

The column span count. Must be at least 1.

Padding

Gets or sets internal spacing between content and borders; falls back to table defaults when null.

Declaration

cs-api-definition
public Thickness? Padding { get; set; }

Property Value

Thickness?

The padding thickness for all sides of the cell, or null to use default padding.

PreferredWidth

Gets or sets the preferred cell width in device-independent pixels; layout attempts to honor this value.

Declaration

cs-api-definition
public double? PreferredWidth { get; set; }

Property Value

double?

The preferred width in pixels, or null to use automatic width calculation.

RowSpan

Gets or sets how many rows the cell spans vertically; values greater than 1 extend across multiple rows.

Declaration

cs-api-definition
public int RowSpan { get; set; }

Property Value

int

The row span count. Must be at least 1.

Size

Gets the final size occupied by the cell after layout, including borders and padding.

Declaration

cs-api-definition
public Size Size { get; }

Property Value

Size

The actual size occupied by the cell in the rendered table.

VerticalAlignment

Gets or sets how the cell’s content is positioned vertically within the available height.

Declaration

cs-api-definition
public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment

The vertical alignment for the cell content.

Methods

ToString()

Returns a string that represents the current object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current object.

Overrides object.ToString()