Class
TableProperties

Represents the properties associated with a table in a document.

Definition

Namespace:Telerik.Windows.Documents.Model.Styles

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TableProperties : DocumentElementPropertiesBase, IElementWithStyle

Inheritance: objectDocumentElementPropertiesBaseTableProperties

Implements: IElementWithStyle

Inherited Members DocumentElementPropertiesBase.GetStyleProperty(IStylePropertyDefinition)DocumentElementPropertiesBase.GetStyleProperty(string)DocumentElementPropertiesBase.CopyPropertiesFrom(DocumentElementPropertiesBase)DocumentElementPropertiesBase.MergePropertiesWith(DocumentElementPropertiesBase)DocumentElementPropertiesBase.ToString()DocumentElementPropertiesBase.ClearProperties()DocumentElementPropertiesBase.OnStyleChanged()DocumentElementPropertiesBase.OnStyleChanging()DocumentElementPropertiesBase.StylePropertiesDocumentElementPropertiesBase.StyleNameDocumentElementPropertiesBase.OriginalStyleNameDocumentElementPropertiesBase.StyleDocumentElementPropertiesBase.HasRevisionsDocumentElementPropertiesBase.RevisionInfoDocumentElementPropertiesBase.OriginalProperties

Constructors

TableProperties(DocumentElement)

Declaration

cs-api-definition
public TableProperties(DocumentElement owner)

Parameters

owner

DocumentElement

TableProperties(StyleDefinition)

Declaration

cs-api-definition
public TableProperties(StyleDefinition owner)

Parameters

owner

StyleDefinition

Properties

Background

Gets or sets the background properties of the table.

Declaration

cs-api-definition
[XamlSerializable]
public Color Background { get; set; }

Property Value

Color

The background properties that define the appearance of the table's background.

Borders

Gets or sets the borders of the table properties.

Declaration

cs-api-definition
[XamlSerializable]
public TableBorders Borders { get; set; }

Property Value

TableBorders

CellPadding

Gets or sets the padding for the cells in the table.

Declaration

cs-api-definition
[XamlSerializable]
public Padding CellPadding { get; set; }

Property Value

Padding

CellSpacing

Gets or sets the amount of space between cells in a table.

Declaration

cs-api-definition
[XamlSerializable]
public double CellSpacing { get; set; }

Property Value

double

A double representing the spacing between cells. The default value is 0.

ColumnBandSize

Gets or sets the number of column groups in a table.

Declaration

cs-api-definition
[XamlSerializable]
public int ColumnBandSize { get; set; }

Property Value

int

The size of the column band.

FlowDirection

Gets or sets the flow direction of the table properties, which determines how text and content flow within the table.

Declaration

cs-api-definition
[XamlSerializable]
public FlowDirection FlowDirection { get; set; }

Property Value

FlowDirection

HorizontalAlignment

Gets or sets the horizontal alignment of the table.

Declaration

cs-api-definition
[XamlSerializable]
public RadHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

RadHorizontalAlignment

LayoutMode

Gets or sets the layout mode of the table properties.

Declaration

cs-api-definition
[XamlSerializable]
public TableLayoutMode LayoutMode { get; set; }

Property Value

TableLayoutMode

PreferredWidth

Gets or sets the preferred width of the table.

Declaration

cs-api-definition
[XamlSerializable]
public TableWidthUnit PreferredWidth { get; set; }

Property Value

TableWidthUnit

RowBandSize

Gets or sets the size of the row banding for the table properties.

Declaration

cs-api-definition
[XamlSerializable]
public int RowBandSize { get; set; }

Property Value

int

The number of rows that are included in each band. A value of 1 indicates that each row is a separate band, while a greater value indicates that multiple rows share the same banding.

TableIndent

Gets or sets the indentation for the table in its containing element.

Declaration

cs-api-definition
[XamlSerializable]
public double TableIndent { get; set; }

Property Value

double

A double value representing the indentation of the table. The default value is 0.0.

TableLook

Gets or sets the look and feel of the table, specifying its visual appearance and style properties.

Declaration

cs-api-definition
[XamlCompositePropertySerializable]
public TableLook TableLook { get; set; }

Property Value

TableLook

ThemeBackground

Gets or sets the theme background properties of the table.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.none)]
public ThemeColorsEnum ThemeBackground { get; set; }

Property Value

ThemeColorsEnum

The theme background properties applied to the table.

ThemeFillShade

Gets or sets the theme fill shade for the table properties.

Declaration

cs-api-definition
[XamlSerializable]
public string ThemeFillShade { get; set; }

Property Value

string

A value representing the theme fill shade applied to the table. This property accepts a shade value that determines the appearance of the table's background in a themed context.

ThemeFillTint

Gets or sets the tint applied to the theme fill of the table properties.

Declaration

cs-api-definition
[XamlSerializable]
public string ThemeFillTint { get; set; }

Property Value

string

A double value representing the tint level applied to the theme fill, where 0.0 represents no tint and 1.0 represents full tint.

Methods

CreateInstance()

Declaration

cs-api-definition
protected override DocumentElementPropertiesBase CreateInstance()

Returns

DocumentElementPropertiesBase

Overrides DocumentElementPropertiesBase.CreateInstance()

InitProperties()

Declaration

cs-api-definition
protected override void InitProperties()

Overrides DocumentElementPropertiesBase.InitProperties()

OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)

Declaration

cs-api-definition
protected override void OnStylePropertyChangedOverride(StylePropertyChangeEventArgs args)

Parameters

args

StylePropertyChangeEventArgs

Overrides DocumentElementPropertiesBase.OnStylePropertyChangedOverride(StylePropertyChangeEventArgs)

ValidateStyleType(StyleDefinition)

Declaration

cs-api-definition
protected override void ValidateStyleType(StyleDefinition value)

Parameters

value

StyleDefinition

Overrides DocumentElementPropertiesBase.ValidateStyleType(StyleDefinition)