New to Telerik UI for WinFormsStart a free 30-day trial

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:

C#
public class TableCell

Inheritance: objectTableCell

Properties

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

C#
public ColorBase Background { get; set; }
Property Value:

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

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

C#
public BlockCollection Blocks { get; }
Property Value:

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

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

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

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

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

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

The column span count. Must be at least 1.

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

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

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

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

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

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

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

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

The row span count. Must be at least 1.

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

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

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

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

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

The vertical alignment for the cell content.

Methods

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()