Add Table

A table is a grid of cells arranged in rows and columns. It's a fundamental feature that allows you to organize and present information in a structured manner. Each intersection of a row and a column in a table is referred to as a cell. Tables are commonly used for various purposes, such as creating schedules, organizing data, and aligning content neatly.

To add a table using IronWord, the row, column, and cell need to be configured. Create a new table by instantiating the Table class. A table object requires a TableRow object, and a TableRow object requires a TableCell object. The TableCell object can contain multiple document elements such as textrun, paragraph, image, and shape. Once the table object has been set up properly, it can be used to create a new Word document.