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