Class
Table

Container for tabular content with rows and cells; lays out columns, borders, spacing, and background for rendering in a document.

Definition

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

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

cs-api-definition
public class Table : IBlockElement, IStructuralElement

Inheritance: objectTable

Implements: IBlockElementIStructuralElement

Constructors

Table()

Initialize an empty table.

Declaration

cs-api-definition
public Table()

Properties

Background

Gets or sets the background color painted behind the entire table.

Declaration

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

Property Value

ColorBase

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

BorderCollapse

Gets or sets whether adjacent cell borders merge (Collapse) or remain distinct with spacing (Separate).

Declaration

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

Property Value

BorderCollapse

The border collapse behavior for the table.

BorderSpacing

Gets or sets the spacing between adjacent cell borders when BorderCollapse is Separate; ignored when Collapse.

Declaration

cs-api-definition
public double BorderSpacing { get; set; }

Property Value

double

The border spacing value in device-independent pixels. Must be greater than or equal to 0.

Borders

Gets or sets the border definitions drawn around the table's outer rectangle.

Declaration

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

Property Value

TableBorders

The table borders configuration.

DefaultCellProperties

Gets the fallback cell properties applied when specific cells do not override them.

Declaration

cs-api-definition
public CellProperties DefaultCellProperties { get; }

Property Value

CellProperties

The default cell properties including padding, borders, and background settings.

DesiredSize

Gets the size computed by the last measurement, including borders and spacing.

Declaration

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

Property Value

Size

The desired size required to display the table with its current content.

Implements IBlockElement.DesiredSize

HasOpenMarkedContent

Gets a value indicating whether this table instance has any open marked content that requires closing.

Declaration

cs-api-definition
public bool HasOpenMarkedContent { get; }

Property Value

bool

true if this instance has open marked content; otherwise, false.

Implements IBlockElement.HasOpenMarkedContent

HasPendingContent

Gets a value indicating whether some rows or cells could not fit in the last layout and must continue later.

Declaration

cs-api-definition
public bool HasPendingContent { get; }

Property Value

bool

true if there is pending content that requires additional space; otherwise, false.

Implements IBlockElement.HasPendingContent

HorizontalAlignment

Gets or sets how the table is positioned horizontally within the available width.

Declaration

cs-api-definition
public TableHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

TableHorizontalAlignment

The horizontal alignment value that determines table positioning.

LayoutType

Gets or sets the column width calculation mode used during measurement.

Declaration

cs-api-definition
public TableLayoutType LayoutType { get; set; }

Property Value

TableLayoutType

The table layout type that controls how the table calculates column widths.

Margin

Gets or sets outer margins around the table that separate it from surrounding content.

Declaration

cs-api-definition
public Thickness Margin { get; set; }

Property Value

Thickness

The margin thickness values for all sides of the table.

Rows

Gets the collection of rows in this table; use to add, remove, or access rows.

Declaration

cs-api-definition
public TableRowCollection Rows { get; }

Property Value

TableRowCollection

The collection of table rows.

StructureTag

Gets or sets the StructureTag associated with this element.

Declaration

cs-api-definition
public StructureElement StructureTag { get; set; }

Property Value

StructureElement

Implements IStructuralElement.StructureTag

Methods

Draw(FixedContentEditor, Rect)

Draw the table into the specified editor within the given bounding rectangle.

Declaration

cs-api-definition
public void Draw(FixedContentEditor editor, Rect boundingRect)

Parameters

editor

FixedContentEditor

The editor.

boundingRect

Rect

The bounding rect.

Implements IBlockElement.Draw(FixedContentEditor, Rect)

Measure()

Measure the table with infinite available size and return the desired size.

Declaration

cs-api-definition
public Size Measure()

Returns

Size

The measured size.

Measure(Size)

Measure the table with the specified available size and return the desired size.

Declaration

cs-api-definition
[Obsolete("The method is obsolete. Please use Measure(Size availableSize, CancellationToken cancellationToken) instead.")]
public Size Measure(Size availableSize)

Parameters

availableSize

Size

The available size.

Returns

Size

The result size.

Implements IBlockElement.Measure(Size)

Measure(Size, CancellationToken)

Measure the table with the specified available size and cancellation token.

Declaration

cs-api-definition
public Size Measure(Size availableSize, CancellationToken cancellationToken)

Parameters

availableSize

Size

The available size.

cancellationToken

CancellationToken

The cancellation token used to cancel the operation.

Returns

Size

The result size.

Implements IBlockElement.Measure(Size, CancellationToken)

Split()

Split the table at the last measured break point and return the remaining part.

Declaration

cs-api-definition
public Table Split()

Returns

Table

The remaining block element.