TableStructureResult<T>
Models & Types · AiDotNet.Document
Represents the result of table structure recognition.
For Beginners
Tables have structure (rows, columns, cells) and content. This result class describes the table’s layout including merged cells, headers, and the data in each cell.
Constructors
| Constructor | Summary |
|---|---|
TableStructureResult() |
Properties
| Property | Summary |
|---|---|
IReadOnlyList<TableCell<T>> Cells { get; set; } |
Gets all cells in the table. |
IReadOnlyList<int> HeaderRows { get; set; } |
Gets the header row indices (often row 0). |
T Confidence { get; set; } |
Gets the overall confidence for the structure detection. |
bool HasBorders { get; set; } |
Gets whether the table has detected borders. |
int NumColumns { get; set; } |
Gets the number of columns in the table. |
int NumRows { get; set; } |
Gets the number of rows in the table. |
Methods
| Method | Summary |
|---|---|
List<List<string>> ToStringGrid() |
Gets the table content as a 2D list of strings. |