skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TableCell

A class representing table cells.

Inheritance
System.Object
DocumentElement
Block
BlockContainerBase
TableCell
Inherited Members
BlockContainerBase.Blocks
DocumentElement.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.add_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)
DocumentElement.add_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.ChildIndex
DocumentElement.HasStyle
DocumentElement.Style
DocumentElement.StyleName
DocumentElement.Tag
DocumentElement.DefaultStyleSettings
DocumentElement.FirstLayoutBox
DocumentElement.LastLayoutBox
DocumentElement.IsFirstLayoutBoxInitialized
DocumentElement.DocumentElements
DocumentElement.Parent
DocumentElement.Children
DocumentElement.PreviousSibling
DocumentElement.NextSibling
DocumentElement.Cursor
DocumentElement.OriginalProperties
DocumentElement.RevisionInfo
DocumentElement.StyleChanging
DocumentElement.StyleChanged
DocumentElement.StylePropertyChanged
DocumentElement.ParentChanging
DocumentElement.ParentChanged
DocumentElement.PropertyValueChanged
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll

Syntax

public class TableCell : BlockContainerBase, IBlockContainer

Constructors

TableCell()

Initializes a new instance of the TableCell class.

Declaration
public TableCell()

Fields

BackgroundProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<Color>, TableCellProperties> BackgroundProperty
Field Value
StylePropertyDefinition<System.Nullable<System.Windows.Media.Color>, TableCellProperties>

PaddingProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<Padding>, TableCellProperties> PaddingProperty
Field Value
StylePropertyDefinition<System.Nullable<Padding>, TableCellProperties>

ThemeBackgroundProperty

Declaration
public static readonly StylePropertyDefinition<Nullable<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<Nullable<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
System.Windows.Media.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

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
System.Boolean

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
System.Boolean

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
System.Boolean

true if this instance is last; otherwise, false.

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
DocumentElement.CopyPropertiesFromOverride(DocumentElement)

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
DocumentElement.CreateLayoutBox(DocumentStructureCollection)

CreateNewElementInstance()

Creates a new instance of TableCell.

Declaration
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
protected override void OnParentChanged()
Overrides
DocumentElement.OnParentChanged()

OnParentChanging()

Called just before the parent changes. Raises ParentChaning event.

Declaration
protected override void OnParentChanging()
Overrides
DocumentElement.OnParentChanging()

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

See Also

BlockContainerBase

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
  • Themes Generator
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
  • System Requirements
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.