Class Table
Block-level flow content element that provides a grid-based organization.
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public sealed class Table : BlockBase, IElementWithStyle, IElementWithProperties, ISdtBlock, IChildrenList
Constructors
Table(RadFlowDocument)
Initializes a new instance of the Table class.
Declaration
public Table(RadFlowDocument document)
Parameters
Rad The document in which the element will be added. |
Table(RadFlowDocument, Int32, Int32)
Initializes a new instance of the Table class with given number of rows and columns.
Declaration
public Table(RadFlowDocument document, int rows, int columns)
Parameters
Rad The document. |
System. The number of rows. |
System. The number of columns. |
Fields
AlignmentPropertyDefinition
Gets the alignment property definition.
Declaration
public static readonly StylePropertyDefinition<Alignment? > AlignmentPropertyDefinition
Field Value
Style
|
BackgroundColorPropertyDefinition
Gets the background color property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableColor> BackgroundColorPropertyDefinition
Field Value
ColumnBandingPropertyDefinition
Gets the column banding property definition.
Declaration
public static readonly StylePropertyDefinition<int? > ColumnBandingPropertyDefinition
Field Value
Style
|
FlowDirectionPropertyDefinition
Gets the flow direction property definition.
Declaration
public static readonly StylePropertyDefinition<FlowDirection? > FlowDirectionPropertyDefinition
Field Value
Style
|
IndentPropertyDefinition
Gets the indent property definition.
Declaration
public static readonly StylePropertyDefinition<double? > IndentPropertyDefinition
Field Value
Style
|
LayoutTypePropertyDefinition
Gets the layout type property definition.
Declaration
public static readonly StylePropertyDefinition<TableLayoutType? > LayoutTypePropertyDefinition
Field Value
Style
|
LooksPropertyDefinition
Gets the table looks property definition.
Declaration
public static readonly StylePropertyDefinition<TableLooks? > LooksPropertyDefinition
Field Value
Style
|
OverlapPropertyDefinition
Gets the overlap property definition.
Declaration
public static readonly StylePropertyDefinition<bool? > OverlapPropertyDefinition
Field Value
Style
|
PreferredWidthPropertyDefinition
Gets the preferred width property definition.
Declaration
public static readonly StylePropertyDefinition<TableWidthUnit> PreferredWidthPropertyDefinition
Field Value
RowBandingPropertyDefinition
Gets the row banding property definition.
Declaration
public static readonly StylePropertyDefinition<int? > RowBandingPropertyDefinition
Field Value
Style
|
ShadingPatternColorPropertyDefinition
Gets the shading pattern color property definition.
Declaration
public static readonly StylePropertyDefinition<ThemableColor> ShadingPatternColorPropertyDefinition
Field Value
ShadingPatternPropertyDefinition
Gets the shading pattern property definition.
Declaration
public static readonly StylePropertyDefinition<ShadingPattern? > ShadingPatternPropertyDefinition
Field Value
Style
|
TableBordersPropertyDefinition
Gets the top border property definition.
Declaration
public static readonly StylePropertyDefinition<TableBorders> TableBordersPropertyDefinition
Field Value
TableCellPaddingPropertyDefinition
Gets the table cell padding property definition.
Declaration
public static readonly StylePropertyDefinition<Padding> TableCellPaddingPropertyDefinition
Field Value
TableCellSpacingPropertyDefinition
Gets the table cell spacing property definition.
Declaration
public static readonly StylePropertyDefinition<double? > TableCellSpacingPropertyDefinition
Field Value
Style
|
Properties
Alignment
Gets or sets the alignment of the table.
Declaration
public Alignment Alignment { get; set; }
Property Value
Alignment
The default value is |
Borders
Gets or sets the borders of the table.
Declaration
public TableBorders Borders { get; set; }
Property Value
Table The borders. |
FlowDirection
Gets the flow direction of cells inside the table.
Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
Flow The default value is |
GridColumnsCount
Gets the number of columns in the table grid.
Declaration
public int GridColumnsCount { get; }
Property Value
System. The grid columns count. |
GridRowsCount
Gets the number of rows in the table grid.
Declaration
public int GridRowsCount { get; }
Property Value
System. The grid rows count. |
HasCellSpacing
Gets a value indicating whether there is cell spacing in the table.
Declaration
public bool HasCellSpacing { get; }
Property Value
System. True if there is cell spacing. |
Indent
Gets or sets a value which shall be added before the leading edge of the table. The value is in device independent pixels (1/96 inch).
Declaration
public double Indent { get; set; }
Property Value
System. The default value is |
LayoutType
Gets or sets a value indicating which algorithm shall be used to lay out the content of the table.
Declaration
public TableLayoutType LayoutType { get; set; }
Property Value
Table The default value is |
Looks
Gets or sets the value indicating which components of the conditional style should be applied if such exists.
Declaration
public TableLooks Looks { get; set; }
Property Value
Table The default value is |
Overlap
Gets or sets a value indicating whether this floating table shall allow other floating tables to overlap its extents.
Declaration
public bool Overlap { get; set; }
Property Value
System. The default value is |
PreferredWidth
Gets or sets the width of the preferred.
Declaration
public TableWidthUnit PreferredWidth { get; set; }
Property Value
Table The width of the preferred. |
Properties
Gets the styling properties of this element.
Declaration
public TableProperties Properties { get; }
Property Value
Table The properties. |
Rows
Gets the rows of the table.
Declaration
public TableRowCollection Rows { get; }
Property Value
Table The rows. |
Shading
Gets the shading which shall be applied to the extents of the table.
Declaration
public Shading Shading { get; }
Property Value
Shading
The shading. |
StyleId
Gets or sets the style id.
Declaration
public string StyleId { get; set; }
Property Value
System. The style id. |
Implements
TableCellPadding
Gets or sets default padding of the cells inside the table.
Declaration
public Padding TableCellPadding { get; set; }
Property Value
Padding
The table cell padding. |
TableCellSpacing
Gets or sets a value indicating the spacing between adjacent cells and the edges of the table. The value is in device independent pixels (1/96 inch).
Declaration
public double TableCellSpacing { get; set; }
Property Value
System. The table cell spacing. |
Methods
Clone()
Creates deep copy of this document element, associated to the current document.
Declaration
public Table Clone()
Returns
Table
The cloned element. |
Clone(RadFlowDocument)
Creates deep copy of this document element, associated to document
.
Declaration
public Table Clone(RadFlowDocument document)
Parameters
Rad The document to which the cloned element should be associated. |
Returns
Table
The cloned element. |
OnChildAdded(DocumentElementBase)
Called when child element is added.
Declaration
protected override void OnChildAdded(DocumentElementBase child)
Parameters
Document The child element. |
Overrides
OnChildRemoved(DocumentElementBase)
Called when child element is removed.
Declaration
protected override void OnChildRemoved(DocumentElementBase child)
Parameters
Document The child element. |
Overrides
Explicit Interface Implementations
IElementWithProperties.Properties
Gets the properties.
Declaration
DocumentElementPropertiesBase IElementWithProperties.Properties { get; }
Returns
Document The properties. |