DocxTable
classin packageklyn.io.docx
public class DocxTable
DocxTable

Represents a table extracted from an OpenXML Word document (.docx).

Provides access to the extracted grid of cells (rows and columns) and formats table content into standard Markdown syntax.

Example
import klyn.io.docx

try doc = DocxDocument("spec.docx"):
    for table in doc.tables:
        print(table.toMarkdown())
Properties
Modifier and Type Member Description
public readonly property columnCount
columnCount as Int
Maximum number of columns across all rows in the table.
public readonly property rowCount
rowCount as Int
Number of rows in the table.
public readonly property rows
rows as IList<IList<String>>
The list of rows, each represented as an immutable list of cell string values.
Constructors
Modifier and Type Member Description
public DocxTable Initializes a new DocxTable from a two-dimensional matrix of cell text strings.
Methods
Modifier and Type Member Description
public toMarkdown
toMarkdown() as String
Converts the table into a standard Markdown grid representation.