Table
Container for tabular content with rows and cells; lays out columns, borders, spacing, and background for rendering in a document.
Definition
Namespace:Telerik.Documents.Fixed.Model.Editing.Tables
Assembly:Telerik.Windows.Documents.Fixed.dll
Syntax:
public class Table : IBlockElement, IStructuralElement
Inheritance: objectTable
Implements:
Constructors
Initialize an empty table.
public Table()
Properties
Gets or sets the background color painted behind the entire table.
public ColorBase Background { get; set; }
The background color of the table, or null for transparent background.
Gets or sets whether adjacent cell borders merge (Collapse) or remain distinct with spacing (Separate).
public BorderCollapse BorderCollapse { get; set; }
The border collapse behavior for the table.
Gets or sets the border definitions drawn around the table's outer rectangle.
public TableBorders Borders { get; set; }
The table borders configuration.
Gets or sets the spacing between adjacent cell borders when BorderCollapse is Separate; ignored when Collapse.
public double BorderSpacing { get; set; }
The border spacing value in device-independent pixels. Must be greater than or equal to 0.
Gets the fallback cell properties applied when specific cells do not override them.
public CellProperties DefaultCellProperties { get; }
The default cell properties including padding, borders, and background settings.
DesiredSize
Size
Gets the size computed by the last measurement, including borders and spacing.
public Size DesiredSize { get; }
The desired size required to display the table with its current content.
Implements:
Gets a value indicating whether this table instance has any open marked content that requires closing.
public bool HasOpenMarkedContent { get; }
true if this instance has open marked content; otherwise, false.
Implements:
Gets a value indicating whether some rows or cells could not fit in the last layout and must continue later.
public bool HasPendingContent { get; }
true if there is pending content that requires additional space; otherwise, false.
Implements:
Gets or sets how the table is positioned horizontally within the available width.
public TableHorizontalAlignment HorizontalAlignment { get; set; }
The horizontal alignment value that determines table positioning.
Gets or sets the column width calculation mode used during measurement.
public TableLayoutType LayoutType { get; set; }
The table layout type that controls how the table calculates column widths.
Margin
Thickness
Gets or sets outer margins around the table that separate it from surrounding content.
public Thickness Margin { get; set; }
The margin thickness values for all sides of the table.
Gets the collection of rows in this table; use to add, remove, or access rows.
public TableRowCollection Rows { get; }
The collection of table rows.
Gets or sets the StructureTag associated with this element.
public StructureElement StructureTag { get; set; }
Implements:
Methods
Draw the table into the specified editor within the given bounding rectangle.
public void Draw(FixedContentEditor editor, Rect boundingRect)
The editor.
boundingRectRectThe bounding rect.
Implements:
Measure the table with infinite available size and return the desired size.
[Obsolete("This method is obsolete. Use Measure(Size availableSize, CancellationToken cancellationToken) instead.")]
public Size Measure()
Size
The measured size.
Measure the table with infinite available size and return the desired size.
public Size Measure(CancellationToken cancellationToken)
The cancellation token used to cancel the operation.
Returns:Size
The measured size.
Measure the table with the specified available size and cancellation token.
public Size Measure(Size availableSize, CancellationToken cancellationToken)
The available size.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:Size
The result size.
Implements: