Class TableCell
A class representing table cells.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class TableCell : BlockContainerBase, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IBlockContainer
Constructors
TableCell()
Fields
BackgroundProperty
Declaration
public static readonly StylePropertyDefinition<Color? , TableCellProperties> BackgroundProperty
Field Value
|
StylePropertyDefinition<System.Nullable<Color>, TableCellProperties>
|
PaddingProperty
Declaration
public static readonly StylePropertyDefinition<Padding? , TableCellProperties> PaddingProperty
Field Value
|
StylePropertyDefinition<System.Nullable<Padding>, TableCellProperties>
|
ThemeBackgroundProperty
Declaration
public static readonly StylePropertyDefinition<ThemeColorsEnum? , TableCellProperties> ThemeBackgroundProperty
Field Value
|
StylePropertyDefinition<System.Nullable<ThemeColorsEnum>, TableCellProperties>
|
ThemeFillShadeProperty
Declaration
public static readonly StylePropertyDefinition<string, TableCellProperties> ThemeFillShadeProperty
Field Value
|
StylePropertyDefinition<System.String, TableCellProperties>
|
ThemeFillTintProperty
Declaration
public static readonly StylePropertyDefinition<string, TableCellProperties> ThemeFillTintProperty
Field Value
|
StylePropertyDefinition<System.String, TableCellProperties>
|
VerticalAlignmentProperty
Declaration
public static readonly StylePropertyDefinition<RadVerticalAlignment? , TableCellProperties> VerticalAlignmentProperty
Field Value
|
StylePropertyDefinition<System.Nullable<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
|
TableCellBorders
The borders. |
ColumnSpan
Gets or sets the column span.
Declaration
[XamlSerializable]
public int ColumnSpan { get; set; }
Property Value
|
System.Int32
The column span. |
Exceptions
|
System.InvalidOperationException
ColumnSpan must be at least 1. |
GridColumnIndex
Gets the index of the column inside the table grid.
Declaration
public int GridColumnIndex { get; }
Property Value
|
System.Int32
The index of the column. |
GridRowIndex
Gets the index of the row inside the table grid.
Declaration
public int GridRowIndex { get; }
Property Value
|
System.Int32
The index of the row. |
HasColumnSpan
Gets a value indicating whether this instance has column span.
Declaration
public bool HasColumnSpan { get; }
Property Value
|
System.Boolean
|
HasRowSpan
Gets a value indicating whether this instance has row span.
Declaration
public bool HasRowSpan { get; }
Property Value
|
System.Boolean
|
IsFirst
Gets a value indicating whether this is the first cell inside the TableRow.
Declaration
public bool IsFirst { get; }
Property Value
|
System.Boolean
|
IsLast
Gets a value indicating whether this is the last cell inside the TableRow.
Declaration
public bool IsLast { get; }
Property Value
|
System.Boolean
|
Padding
Gets or sets the padding.
Declaration
[XamlSerializable]
public Padding Padding { get; set; }
Property Value
|
Padding
The padding. |
PreferredWidth
Gets or sets the preferred width of the table cell.
Declaration
[XamlSerializable]
public TableWidthUnit PreferredWidth { get; set; }
Property Value
|
TableWidthUnit
The preferred width. |
Row
Gets the parent table row.
Declaration
public TableRow Row { get; }
Property Value
|
TableRow
The row. |
RowSpan
Gets or sets the row span.
Declaration
[XamlSerializable]
public int RowSpan { get; set; }
Property Value
|
System.Int32
The row span. |
Exceptions
|
System.InvalidOperationException
RowSpan must be at least 1. |
TextAlignment
Gets or sets the text alignment.
Declaration
[XamlSerializable]
public RadTextAlignment TextAlignment { get; set; }
Property Value
|
RadTextAlignment
The text alignment. |
ThemeBackground
Gets or sets the theme background.
Declaration
[XamlSerializable]
public ThemeColorsEnum ThemeBackground { get; set; }
Property Value
|
ThemeColorsEnum
The theme background. |
ThemeFillShade
Gets or sets the theme fill shade.
Declaration
[XamlSerializable]
public string ThemeFillShade { get; set; }
Property Value
|
System.String
The theme fill shade. |
ThemeFillTint
Gets or sets the theme fill tint.
Declaration
[XamlSerializable]
public string ThemeFillTint { get; set; }
Property Value
|
System.String
The theme fill tint. |
VerticalAlignment
Gets or sets the vertical alignment.
Declaration
[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
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
|
DocumentElement
fromElement
The TableCell to copy the properties from. |
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a new TableCellLayoutBox.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
|
DocumentStructureCollection
documentCollection
The document collection. |
Returns
|
LayoutBox
The new TableCellLayoutBox instance. |
Overrides
CreateNewElementInstance()
Creates a new instance of TableCell.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
|
DocumentElement
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()