ClassTableRow
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:
public sealed class TableRow : DocumentElementBase, IElementWithProperties
Inheritance: objectDocumentElementBaseTableRow
Implements:
Inherited Members
Constructors
TableRow(RadFlowDocument)
Initializes a new TableRow with default formatting and an empty cell collection in the specified document.
Declaration
public TableRow(RadFlowDocument document)
Parameters
document
The document in which the element will be added.
Fields
CanSplitPropertyDefinition
Style property definition for controlling whether row content can be split across page breaks.
Declaration
public static readonly StylePropertyDefinition<bool?> CanSplitPropertyDefinition
Field Value
HeightPropertyDefinition
Style property definition for row height, supporting auto, at-least, and exact height modes in device independent pixels (1/96 inch).
Declaration
public static readonly StylePropertyDefinition<TableRowHeight> HeightPropertyDefinition
Field Value
HorizontalAlignmentPropertyDefinition
Style property definition for horizontal alignment of cells within the row.
Declaration
public static readonly StylePropertyDefinition<Alignment> HorizontalAlignmentPropertyDefinition
Field Value
RepeatOnEveryPagePropertyDefinition
Style property definition for controlling whether the row repeats as a header at the top of each page.
Declaration
public static readonly StylePropertyDefinition<bool?> RepeatOnEveryPagePropertyDefinition
Field Value
TableCellSpacingPropertyDefinition
Style property definition for cell spacing in the row, overriding the table's default cell spacing when set.
Declaration
public static readonly StylePropertyDefinition<double?> TableCellSpacingPropertyDefinition
Field Value
Properties
CanSplit
Controls whether row content can be split across page breaks; when false, the entire row remains on one page.
Declaration
public bool CanSplit { get; set; }
Property Value
The default value is true.
Cells
Collection of cells contained in this row, providing add, insert, and remove operations for row structure.
Declaration
public TableCellCollection Cells { get; }
Property Value
The cells.
GridRowIndex
Zero-based row index in the table grid, automatically calculated based on row positions and cell row spans.
Declaration
public int GridRowIndex { get; }
Property Value
The index of the row in the table grid.
Height
Row height specification, supporting auto, at-least, and exact height modes with values in device independent pixels (1/96 inch).
Declaration
public TableRowHeight Height { get; set; }
Property Value
The height.
HorizontalAlignment
Horizontal alignment of cells in this row, controlling left, center, or right positioning within the table width.
Declaration
public Alignment HorizontalAlignment { get; set; }
Property Value
Properties
Row formatting properties, providing access to height, cell spacing, page break behavior, header repetition, and horizontal alignment settings.
Declaration
public TableRowProperties Properties { get; }
Property Value
The properties.
RepeatOnEveryPage
Controls whether this row is repeated as a header at the top of each page when the table spans multiple pages.
Declaration
public bool RepeatOnEveryPage { get; set; }
Property Value
The default value is false.
Table
Parent table containing this row, providing access to table-level formatting and the grid structure.
TableCellSpacing
Space between adjacent cells in this row in device independent pixels (1/96 inch), overriding the table's default cell spacing when set.
Declaration
public double TableCellSpacing { get; set; }
Property Value
The default value is 0.
Methods
Clone()
Creates a deep copy of this row including all cells and formatting properties, associated to the same document.
Clone(RadFlowDocument)
Creates a deep copy of this row including all cells and formatting properties, associated to the specified document for cross-document copying.
Declaration
public TableRow Clone(RadFlowDocument document)
Parameters
document
The document to which the cloned element should be associated.
Returns
The cloned element.
OnChildAdded(DocumentElementBase)
Called when child element is the added.
Declaration
protected override void OnChildAdded(DocumentElementBase child)
Parameters
child
The child element.
Overrides
OnChildRemoved(DocumentElementBase)
Called when child element is removed.
Declaration
protected override void OnChildRemoved(DocumentElementBase child)
Parameters
child
The child element.
Overrides