TableProperties
Holds the style-backed formatting values for a table.
Definition
Namespace:Telerik.WinForms.Documents.Model.Styles
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class TableProperties : DocumentElementPropertiesBase, IElementWithStyle
Inheritance: objectDocumentElementPropertiesBaseTableProperties
Implements:
Inherited Members
Constructors
Creates table properties associated with a document element.
public TableProperties(DocumentElement owner)
The document element whose table properties are represented.
Creates table properties associated with a style definition.
public TableProperties(StyleDefinition owner)
The style definition that owns these properties.
Properties
Gets or sets the explicit table fill. Changing it while a theme background is active clears the theme color.
[XamlSerializable]
public Color Background { get; set; }
Gets or sets the table's outer and internal borders, including defaults for cell edges marked as inherited.
[XamlSerializable]
public TableBorders Borders { get; set; }
Gets or sets the default inset between each cell's content and its borders.
[XamlSerializable]
public Padding CellPadding { get; set; }
Gets or sets the spacing used between cells and at the table edges during layout.
[XamlSerializable]
public double CellSpacing { get; set; }
Gets or sets the number of consecutive columns in each alternating column band when column banding is enabled by TableLook.
[XamlSerializable]
public int ColumnBandSize { get; set; }
Gets or sets the direction in which table cells are laid out, which also determines the leading edge for indentation.
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }
Gets or sets the table's horizontal alignment within the available layout width.
[XamlSerializable]
public RadHorizontalAlignment HorizontalAlignment { get; set; }
Gets or sets whether columns use fixed preferred widths or are sized automatically from their content and available width.
[XamlSerializable]
public TableLayoutMode LayoutMode { get; set; }
Gets or sets the table's width constraint as an automatic, fixed, or percentage width.
[XamlSerializable]
public TableWidthUnit PreferredWidth { get; set; }
Gets or sets the number of consecutive rows in each alternating row band when row banding is enabled by TableLook.
[XamlSerializable]
public int RowBandSize { get; set; }
Gets or sets the offset from the leading edge of a left-aligned table; layout applies it on the left in left-to-right flow and on the right in right-to-left flow.
[XamlSerializable]
public double TableIndent { get; set; }
Gets or sets which table components receive conditional formatting, such as first or last rows and columns or alternating bands.
[XamlCompositePropertySerializable]
public TableLook TableLook { get; set; }
Gets or sets the theme palette color used for the table fill. Changing an active theme fill to an explicit Background clears this value.
[XamlSerializable(ThemeColorsEnum.none)]
public ThemeColorsEnum ThemeBackground { get; set; }
Gets or sets the shade metadata for the theme-based table fill.
[XamlSerializable]
public string ThemeFillShade { get; set; }
Gets or sets the tint metadata for the theme-based table fill.
[XamlSerializable]
public string ThemeFillTint { get; set; }
Methods
Creates another property set associated with the current document element.
protected override DocumentElementPropertiesBase CreateInstance()
A new TableProperties instance.
Overrides:
Connects each table property to the corresponding table style property.
protected override void InitProperties()
Overrides:
Propagates changed table-style properties to cells and their paragraph and span content, respecting conditional table-style masks.
protected override void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)
The changed property and, when applicable, its conditional table-style type.
Overrides:
Restricts the owning style definition to table styles.
protected override void ValidateStyleType(StyleDefinition value)
The style definition to validate.
Exceptions: InvalidOperationExceptionThe style definition has a type other than Table.
Overrides: