Search Results for

    Show / Hide Table of Contents

    Class TableCell

    Represents a table cell with span support

    Contains the content and metadata for a cell in a table.

    Supports merged cells (spans) across rows and columns.

    Inheritance
    System.Object
    TableCell
    Namespace: IronPdf.Extractions
    Assembly: IronPdf.dll
    Syntax
    public class TableCell : Object

    Constructors

    TableCell()

    Declaration
    public TableCell()

    Properties

    BoundingBox

    Bounding box of the cell on the page

    Represents the physical area occupied by the cell.

    Declaration
    public  < 7  b56d8b3 - e75c - 452  b - af2b - e32243b44b60 > PdfRectangle BoundingBox { get; }
    Property Value
    Type Description
    <7b56d8b3-e75c-452b-af2b-e32243b44b60>PdfRectangle

    ColSpan

    Number of columns this cell spans

    Value of 1 means the cell spans only its own column.

    Declaration
    public int ColSpan { get; }
    Property Value
    Type Description
    System.Int32

    ColumnIndex

    Column index of the cell within the table (0-based)

    Declaration
    public int ColumnIndex { get; }
    Property Value
    Type Description
    System.Int32

    HasSpan

    Checks if the cell has a span

    True if the cell spans more than one row or column.

    Declaration
    public bool HasSpan { get; }
    Property Value
    Type Description
    System.Boolean

    IsCoveredBySpan

    Indicates whether this cell is covered by a span from another cell

    True if this cell is part of a span originating from another cell.

    Declaration
    public bool IsCoveredBySpan { get; }
    Property Value
    Type Description
    System.Boolean

    IsEmpty

    Checks if the cell is empty

    A cell is considered empty if its text content is null, empty, or whitespace.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean

    IsSpanOrigin

    Indicates whether this cell is the origin of a span

    True if this cell spans other cells (RowSpan > 1 or ColSpan > 1).

    Declaration
    public bool IsSpanOrigin { get; }
    Property Value
    Type Description
    System.Boolean

    RowIndex

    Row index of the cell within the table (0-based)

    Declaration
    public int RowIndex { get; }
    Property Value
    Type Description
    System.Int32

    RowSpan

    Number of rows this cell spans

    Value of 1 means the cell spans only its own row.

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

    SpanOriginCell

    Reference to the origin cell if this cell is covered by a span

    Null if this cell is not covered by a span.

    Declaration
    public TableCell SpanOriginCell { get; }
    Property Value
    Type Description
    TableCell

    Text

    Text content of the cell

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    System.String
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.