ClassTableCell
A class representing table cells.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class TableCell : BlockContainerBase, IBlockContainer
Inheritance: objectDocumentElementBlockBlockContainerBaseTableCell
Implements:
Inherited Members
Constructors
TableCell()
Initializes a new instance of the TableCell class.
Declaration
public TableCell()
Fields
BackgroundProperty
Declaration
public static readonly StylePropertyDefinition<Color?, TableCellProperties> BackgroundProperty
Field Value
PaddingProperty
Declaration
public static readonly StylePropertyDefinition<Padding?, TableCellProperties> PaddingProperty
Field Value
ThemeBackgroundProperty
Declaration
public static readonly StylePropertyDefinition<ThemeColorsEnum?, TableCellProperties> ThemeBackgroundProperty
Field Value
StylePropertyDefinition<ThemeColorsEnum?, TableCellProperties>
ThemeFillShadeProperty
Declaration
public static readonly StylePropertyDefinition<string, TableCellProperties> ThemeFillShadeProperty
Field Value
ThemeFillTintProperty
Declaration
public static readonly StylePropertyDefinition<string, TableCellProperties> ThemeFillTintProperty
Field Value
VerticalAlignmentProperty
Declaration
public static readonly StylePropertyDefinition<RadVerticalAlignment?, TableCellProperties> VerticalAlignmentProperty
Field Value
StylePropertyDefinition<RadVerticalAlignment?, TableCellProperties>
Properties
Background
Gets or sets the background.
Declaration
[XamlSerializable]
public Color Background { get; set; }
Property Value
Color
The background.
Borders
Gets or sets all the borders of a table cell.
Declaration
[XamlSerializable]
public TableCellBorders Borders { get; set; }
Property Value
The borders.
ColumnSpan
Gets or sets the column span.
Declaration
[XamlSerializable]
public int ColumnSpan { get; set; }
Property Value
The column span.
Exceptions
ColumnSpan must be at least 1.
GridColumnIndex
Gets the index of the column inside the table grid.
Declaration
public int GridColumnIndex { get; }
Property Value
The index of the column.
GridRowIndex
Gets the index of the row inside the table grid.
Declaration
public int GridRowIndex { get; }
Property Value
The index of the row.
HasColumnSpan
Gets a value indicating whether this instance has column span.
Declaration
public bool HasColumnSpan { get; }
Property Value
true if this instance has column span bigger than 1; otherwise, false.
HasRowSpan
Gets a value indicating whether this instance has row span.
Declaration
public bool HasRowSpan { get; }
Property Value
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
public bool IsFirst { get; }
Property Value
true if this instance is first; otherwise, false.
IsLast
Gets a value indicating whether this is the last cell inside the TableRow.
Declaration
public bool IsLast { get; }
Property Value
true if this instance is last; otherwise, false.
Padding
Gets or sets the padding.
Declaration
[XamlSerializable]
public Padding Padding { get; set; }
Property Value
The padding.
PreferredWidth
Gets or sets the preferred width of the table cell.
Declaration
[XamlSerializable]
public TableWidthUnit PreferredWidth { get; set; }
Property Value
The preferred width.
Row
Gets the parent table row.
RowSpan
Gets or sets the row span.
Declaration
[XamlSerializable]
public int RowSpan { get; set; }
Property Value
The row span.
Exceptions
RowSpan must be at least 1.
TextAlignment
Gets or sets the text alignment.
Declaration
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value
The text alignment.
ThemeBackground
Gets or sets the theme background.
Declaration
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value
The theme background.
ThemeFillShade
Gets or sets the theme fill shade.
Declaration
[XamlSerializable]
public string ThemeFillShade { get; set; }
Property Value
The theme fill shade.
ThemeFillTint
Gets or sets the theme fill tint.
Declaration
[XamlSerializable]
public string ThemeFillTint { get; set; }
Property Value
The theme fill tint.
VerticalAlignment
Gets or sets the vertical alignment.
Declaration
[XamlSerializable]
public RadVerticalAlignment VerticalAlignment { get; set; }
Property Value
The vertical alignment.
Methods
CopyPropertiesFromOverride(DocumentElement)
Copies the properties of a TableCell instance to the current object.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
fromElement
The TableCell to copy the properties from.
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a new TableCellLayoutBox.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
documentCollection
The document collection.
Returns
The new TableCellLayoutBox instance.
Overrides
CreateNewElementInstance()
Creates a new instance of TableCell.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
The new TableCell instance.
Overrides
OnParentChanged()
Called after the parent has been changed. Raises ParentChaned event.
Declaration
protected override void OnParentChanged()
Overrides
OnParentChanging()
Called just before the parent changes. Raises ParentChaning event.
Declaration
protected override void OnParentChanging()
Overrides