Class TableRow
Represents a table row
Contains a collection of cells that make up a row in a table.
Inheritance
Namespace: IronPdf.Extractions
Assembly: IronPdf.dll
Syntax
public class TableRow : Object
Use TableRow in IronPDF when a C# application works with text extraction. It represents a table row Contains a collection of cells that make up a row in a table.
TableRow matters when an application needs to configure or invoke text extraction from C# code. The class encapsulates the related options and behavior in a single object that is set up once and reused across render or processing calls. Typical scenarios include batch generation pipelines, templated document workflows, and integration with existing C# document services.
To use TableRow, instantiate or obtain it from the relevant entry point in the IronPDF C# API. Key properties include CellCount, Cells, Height, Item[Int32]. Assign options or invoke methods on the instance to configure or perform the operation. The table of contents covers typical usage in C# end to end.
using IronPdf;
var instance = new TableRow();
var current = instance.CellCount;
// Read or assign other properties such as Cells, Height
instance.GetCellText();For the broader workflow, see the IronPDF C# documentation for related how-to guides and examples. For broader context, the text extraction portion of the IronPDF C# API contains related types that work with TableRow directly. TableRow exposes additional members beyond those highlighted above; the reference tables on this page list the full set. In application code, treat TableRow as a configured object that is constructed once and reused across operations rather than instantiated per call. Configuration is generally idempotent: assigning the same property value twice has the same effect as assigning it once. For diagnostic purposes, inspect the relevant TableRow property after each operation to confirm the configured state. See the constructors, properties, and methods tables below for the complete API surface of TableRow.
Constructors
TableRow()
Declaration
public TableRow()
Properties
CellCount
Gets the number of cells in the row
Declaration
public int CellCount { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Cells
List of cells in the row
Declaration
public List<TableCell> Cells { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<TableCell> |
Height
Height of the row in points
Declaration
public double Height { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Item[Int32]
Gets a cell by column index
Declaration
public TableCell this[int columnIndex] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | columnIndex | Column index (0-based) |
Property Value
| Type | Description |
|---|---|
| TableCell | TableCell at the specified column |
RowIndex
Index of the row within the table (0-based)
Declaration
public int RowIndex { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
GetCellText(Int32)
Gets the text content of a cell by column index
Declaration
public string GetCellText(int columnIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | columnIndex | Column index (0-based) |
Returns
| Type | Description |
|---|---|
| System.String | Text content of the cell at the specified column |