New to Telerik UI for WinForms? Start a free 30-day trial

Holds the style-backed formatting values for a table cell.

Definition

Constructors

Creates cell properties associated with a document element.

C#
public TableCellProperties(DocumentElement owner)
Parameters:ownerDocumentElement

The document element whose cell properties are represented.

Creates cell properties associated with a style definition.

C#
public TableCellProperties(StyleDefinition owner)
Parameters:ownerStyleDefinition

The style definition that owns these properties.

Properties

Gets or sets the explicit cell fill. Changing it while a theme background is active clears the theme color, shade, and tint.

C#
[XamlSerializable]
public Color Background { get; set; }

Gets or sets the cell's edge borders; inherited edges are resolved from the table's border settings.

C#
[XamlSerializable]
public TableCellBorders Borders { get; set; }

Gets or sets the inset between the cell's content and its borders.

C#
[XamlSerializable]
public Padding Padding { get; set; }

Gets or sets the theme palette color used for the cell fill. Changing an active theme fill to an explicit Background clears this value and its shade and tint.

C#
[XamlSerializable(ThemeColorsEnum.none)]
public ThemeColorsEnum ThemeBackground { get; set; }

Gets or sets the shade metadata for the theme-based cell fill.

C#
[XamlSerializable]
public string ThemeFillShade { get; set; }

Gets or sets the tint metadata for the theme-based cell fill.

C#
[XamlSerializable]
public string ThemeFillTint { get; set; }

Gets or sets the vertical placement of content within the cell.

C#
[XamlSerializable]
public RadVerticalAlignment VerticalAlignment { get; set; }

Methods

Creates another property set associated with the current document element.

C#
protected override DocumentElementPropertiesBase CreateInstance()
Returns:

DocumentElementPropertiesBase

A new TableCellProperties instance.

Overrides: DocumentElementPropertiesBase.CreateInstance()

Connects each cell property to the corresponding table-cell style property.

C#
protected override void InitProperties()

Overrides: DocumentElementPropertiesBase.InitProperties()