Table of Contents

Class TableStructureResult<T>

Namespace
AiDotNet.Document
Assembly
AiDotNet.dll

Represents the result of table structure recognition.

public class TableStructureResult<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
TableStructureResult<T>
Inherited Members

Remarks

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.

Properties

Cells

Gets all cells in the table.

public IReadOnlyList<TableCell<T>> Cells { get; init; }

Property Value

IReadOnlyList<TableCell<T>>

Confidence

Gets the overall confidence for the structure detection.

public T Confidence { get; init; }

Property Value

T

HasBorders

Gets whether the table has detected borders.

public bool HasBorders { get; init; }

Property Value

bool

HeaderRows

Gets the header row indices (often row 0).

public IReadOnlyList<int> HeaderRows { get; init; }

Property Value

IReadOnlyList<int>

NumColumns

Gets the number of columns in the table.

public int NumColumns { get; init; }

Property Value

int

NumRows

Gets the number of rows in the table.

public int NumRows { get; init; }

Property Value

int

Methods

ToStringGrid()

Gets the table content as a 2D list of strings.

public List<List<string>> ToStringGrid()

Returns

List<List<string>>

Rows containing columns of cell text.