Class
TableCell

A class representing table cells.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class TableCell : BlockContainerBase, IBlockContainer

Inheritance: objectDocumentElementBlockBlockContainerBaseTableCell

Implements: IBlockContainer

Inherited Members BlockContainerBase.BlocksDocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateDeepCopy()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStyleChanged()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChanged

Constructors

TableCell()

Initializes a new instance of the TableCell class.

Declaration

cs-api-definition
public TableCell()

Fields

BackgroundProperty

Declaration

cs-api-definition
public static readonly StylePropertyDefinition<Color?, TableCellProperties> BackgroundProperty

Field Value

StylePropertyDefinition<Color?, TableCellProperties>

PaddingProperty

Declaration

cs-api-definition
public static readonly StylePropertyDefinition<Padding?, TableCellProperties> PaddingProperty

Field Value

StylePropertyDefinition<Padding?, TableCellProperties>

ThemeBackgroundProperty

Declaration

cs-api-definition
public static readonly StylePropertyDefinition<ThemeColorsEnum?, TableCellProperties> ThemeBackgroundProperty

Field Value

StylePropertyDefinition<ThemeColorsEnum?, TableCellProperties>

ThemeFillShadeProperty

Declaration

cs-api-definition
public static readonly StylePropertyDefinition<string, TableCellProperties> ThemeFillShadeProperty

Field Value

StylePropertyDefinition<string, TableCellProperties>

ThemeFillTintProperty

Declaration

cs-api-definition
public static readonly StylePropertyDefinition<string, TableCellProperties> ThemeFillTintProperty

Field Value

StylePropertyDefinition<string, TableCellProperties>

VerticalAlignmentProperty

Declaration

cs-api-definition
public static readonly StylePropertyDefinition<RadVerticalAlignment?, TableCellProperties> VerticalAlignmentProperty

Field Value

StylePropertyDefinition<RadVerticalAlignment?, TableCellProperties>

Properties

Background

Gets or sets the background.

Declaration

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

Property Value

Color

The background.

Borders

Gets or sets all the borders of a table cell.

Declaration

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

Property Value

TableCellBorders

The borders.

ColumnSpan

Gets or sets the column span.

Declaration

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

Property Value

int

The column span.

Exceptions

InvalidOperationException

ColumnSpan must be at least 1.

GridColumnIndex

Gets the index of the column inside the table grid.

Declaration

cs-api-definition
public int GridColumnIndex { get; }

Property Value

int

The index of the column.

GridRowIndex

Gets the index of the row inside the table grid.

Declaration

cs-api-definition
public int GridRowIndex { get; }

Property Value

int

The index of the row.

HasColumnSpan

Gets a value indicating whether this instance has column span.

Declaration

cs-api-definition
public bool HasColumnSpan { get; }

Property Value

bool

true if this instance has column span bigger than 1; otherwise, false.

HasRowSpan

Gets a value indicating whether this instance has row span.

Declaration

cs-api-definition
public bool HasRowSpan { get; }

Property Value

bool

true if this instance has row span value bigger than 1; otherwise, false.

IsFirst

Gets a value indicating whether this is the first cell inside the TableRow.

Declaration

cs-api-definition
public bool IsFirst { get; }

Property Value

bool

true if this instance is first; otherwise, false.

IsLast

Gets a value indicating whether this is the last cell inside the TableRow.

Declaration

cs-api-definition
public bool IsLast { get; }

Property Value

bool

true if this instance is last; otherwise, false.

Padding

Gets or sets the padding.

Declaration

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

Property Value

Padding

The padding.

PreferredWidth

Gets or sets the preferred width of the table cell.

Declaration

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

Property Value

TableWidthUnit

The preferred width.

Row

Gets the parent table row.

Declaration

cs-api-definition
public TableRow Row { get; }

Property Value

TableRow

The row.

RowSpan

Gets or sets the row span.

Declaration

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

Property Value

int

The row span.

Exceptions

InvalidOperationException

RowSpan must be at least 1.

TextAlignment

Gets or sets the text alignment.

Declaration

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

Property Value

RadTextAlignment

The text alignment.

ThemeBackground

Gets or sets the theme background.

Declaration

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

Property Value

ThemeColorsEnum

The theme background.

ThemeFillShade

Gets or sets the theme fill shade.

Declaration

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

Property Value

string

The theme fill shade.

ThemeFillTint

Gets or sets the theme fill tint.

Declaration

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

Property Value

string

The theme fill tint.

VerticalAlignment

Gets or sets the vertical alignment.

Declaration

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

Property Value

RadVerticalAlignment

The vertical alignment.

Methods

CopyPropertiesFromOverride(DocumentElement)

Copies the properties of a TableCell instance to the current object.

Declaration

cs-api-definition
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The TableCell to copy the properties from.

Overrides DocumentElement.CopyPropertiesFromOverride(DocumentElement)

CreateLayoutBox(DocumentStructureCollection)

Creates a new TableCellLayoutBox.

Declaration

cs-api-definition
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)

Parameters

documentCollection

DocumentStructureCollection

The document collection.

Returns

LayoutBox

The new TableCellLayoutBox instance.

Overrides DocumentElement.CreateLayoutBox(DocumentStructureCollection)

CreateNewElementInstance()

Creates a new instance of TableCell.

Declaration

cs-api-definition
protected override DocumentElement CreateNewElementInstance()

Returns

DocumentElement

The new TableCell instance.

Overrides DocumentElement.CreateNewElementInstance()

OnParentChanged()

Called after the parent has been changed. Raises ParentChaned event.

Declaration

cs-api-definition
protected override void OnParentChanged()

Overrides DocumentElement.OnParentChanged()

OnParentChanging()

Called just before the parent changes. Raises ParentChaning event.

Declaration

cs-api-definition
protected override void OnParentChanging()

Overrides DocumentElement.OnParentChanging()