New to Telerik Document ProcessingStart a free 30-day trial

Row within a table containing cells, supporting height constraints, page break control, header row repetition, and cell spacing settings.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public sealed class TableRow : DocumentElementBase, IElementWithProperties

Inheritance: objectDocumentElementBaseTableRow

Implements: IElementWithProperties

Inherited Members DocumentElementBase.EnumerateChildrenOfType<T>()DocumentElementBase.DocumentDocumentElementBase.Parent

Constructors

Initializes a new TableRow with default formatting and an empty cell collection in the specified document.

C#
public TableRow(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document in which the element will be added.

Fields

Style property definition for controlling whether row content can be split across page breaks.

C#
public static readonly StylePropertyDefinition<bool?> CanSplitPropertyDefinition

Style property definition for row height, supporting auto, at-least, and exact height modes in device independent pixels (1/96 inch).

C#
public static readonly StylePropertyDefinition<TableRowHeight> HeightPropertyDefinition

Style property definition for horizontal alignment of cells within the row.

C#
public static readonly StylePropertyDefinition<Alignment> HorizontalAlignmentPropertyDefinition

Style property definition for controlling whether the row repeats as a header at the top of each page.

C#
public static readonly StylePropertyDefinition<bool?> RepeatOnEveryPagePropertyDefinition

Style property definition for cell spacing in the row, overriding the table's default cell spacing when set.

C#
public static readonly StylePropertyDefinition<double?> TableCellSpacingPropertyDefinition

Methods

Creates a deep copy of this row including all cells and formatting properties, associated to the same document.

C#
public TableRow Clone()
Returns:

TableRow

The cloned element.

Creates a deep copy of this row including all cells and formatting properties, associated to the specified document for cross-document copying.

C#
public TableRow Clone(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document to which the cloned element should be associated.

Returns:

TableRow

The cloned element.

Called when child element is the added.

C#
protected override void OnChildAdded(DocumentElementBase child)
Parameters:childDocumentElementBase

The child element.

Overrides: DocumentElementBase.OnChildAdded(DocumentElementBase)

Called when child element is removed.

C#
protected override void OnChildRemoved(DocumentElementBase child)
Parameters:childDocumentElementBase

The child element.

Overrides: DocumentElementBase.OnChildRemoved(DocumentElementBase)

Properties

Controls whether row content can be split across page breaks; when false, the entire row remains on one page.

C#
public bool CanSplit { get; set; }
Property Value:

The default value is true.

Collection of cells contained in this row, providing add, insert, and remove operations for row structure.

C#
public TableCellCollection Cells { get; }
Property Value:

The cells.

Zero-based row index in the table grid, automatically calculated based on row positions and cell row spans.

C#
public int GridRowIndex { get; }
Property Value:

The index of the row in the table grid.

Row height specification, supporting auto, at-least, and exact height modes with values in device independent pixels (1/96 inch).

C#
public TableRowHeight Height { get; set; }
Property Value:

The height.

Horizontal alignment of cells in this row, controlling left, center, or right positioning within the table width.

C#
public Alignment HorizontalAlignment { get; set; }

Row formatting properties, providing access to height, cell spacing, page break behavior, header repetition, and horizontal alignment settings.

C#
public TableRowProperties Properties { get; }
Property Value:

The properties.

Controls whether this row is repeated as a header at the top of each page when the table spans multiple pages.

C#
public bool RepeatOnEveryPage { get; set; }
Property Value:

The default value is false.

Parent table containing this row, providing access to table-level formatting and the grid structure.

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

The table.

Space between adjacent cells in this row in device independent pixels (1/96 inch), overriding the table's default cell spacing when set.

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

The default value is 0.