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 Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TableCell

Represents a single cell within a table that can contain blocks of content and has configurable properties such as borders, padding, background, and spanning capabilities across multiple rows or columns.

Inheritance
System.Object
TableCell
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.Editing.Tables
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public class TableCell

Properties

Background

Gets or sets the background color for this cell that appears behind the cell's content. When null, the table's default cell background is used.

Declaration
public ColorBase Background { get; set; }
Property Value
ColorBase

The background color of the cell, or null for transparent background.

Blocks

Gets the collection of content blocks contained within this cell. Use this collection to add paragraphs, images, tables, and other block elements to the cell.

Declaration
public BlockCollection Blocks { get; }
Property Value
BlockCollection

The collection of blocks that make up the cell's content.

Borders

Gets or sets the borders for this cell that define the visual boundary around the cell content. These borders can override or supplement the table's default border settings.

Declaration
public TableCellBorders Borders { get; set; }
Property Value
TableCellBorders

The cell border configuration including all four sides and diagonal borders.

ColumnSpan

Gets or sets the number of columns this cell spans horizontally. A value greater than 1 causes the cell to extend across multiple table columns.

Declaration
public int ColumnSpan { get; set; }
Property Value
System.Int32

The column span count. Must be at least 1.

Padding

Gets or sets the internal spacing between the cell's borders and its content. When null, the table's default cell padding is used.

Declaration
public Thickness? Padding { get; set; }
Property Value
System.Nullable<System.Windows.Thickness>

The padding thickness for all sides of the cell, or null to use default padding.

PreferredWidth

Gets or sets the preferred width for this cell in device-independent pixels. When specified, the table layout algorithm will attempt to honor this width preference.

Declaration
public double? PreferredWidth { get; set; }
Property Value
System.Nullable<System.Double>

The preferred width in pixels, or null to use automatic width calculation.

RowSpan

Gets or sets the number of rows this cell spans vertically. A value greater than 1 causes the cell to extend across multiple table rows.

Declaration
public int RowSpan { get; set; }
Property Value
System.Int32

The row span count. Must be at least 1.

Size

Gets the final rendered size of the cell after layout has been calculated, including borders and padding.

Declaration
public Size Size { get; }
Property Value
System.Windows.Size

The actual size occupied by the cell in the rendered table.

VerticalAlignment

Gets or sets the vertical alignment of content within the cell when multiple blocks are present. This determines how the content is positioned vertically within the available cell space.

Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
VerticalAlignment

The vertical alignment for the cell content.

Methods

ToString()

Returns a System.String that represents the current System.Object.

Declaration
public override string ToString()
Returns
System.String

A System.String that represents the current System.Object.

Overrides
System.Object.ToString()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • 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.