TableClass
Definition
- Namespace
- DOM.Elements.TableElements
- Assembly
- DOM.dll
Represents a table element within the document model.
Remarks
A consists of rows and cells, supports indexing (by row and by row/column pair), styling (), optional captions and descriptions, zebra striping, and enumeration over both rows and cells. It corresponds to a <w:tbl> element in WordprocessingML and to <table> in HTML. Table TableStyle Tables are typically created with the constructor or one of the factory helpers (,,, ). constructor(int, int) FromDataTable(DataTable, bool, TableStyle) FromCsv(string, bool, char, TableStyle) FromEnumerable`(IEnumerable<`>, bool, TableStyle) FromStrings(IEnumerable<string>, string, TableStyle)
Examples
Constructors
Initializes a new instance of the class with no rows or columns. Table
Initializes a new with the specified number of rows and columns. Table
Properties
Gets or sets an optional caption displayed with the table, often used to label or title the content.
Gets or sets an optional description that can be associated with the table, typically used for accessibility or metadata purposes.
Gets or sets the table row at the specified row index.
Gets or sets a specific table cell using row and column indices.
Gets all the table rows contained within this table.
Gets or sets the style applied to this table.
Gets or sets zebra-striping color definitions for alternating row styling.
Methods
Creates a from a CSV file located at the specified path. Table
Creates a instance from a . Table, DataTable
Creates a from an enumerable data source. Table
Creates a single-column from a sequence of strings. Table
Retrieves the cell located at the specified row and column indices.
Returns an enumerator that iterates through all table cells in row-major order.
Retrieves the row at the specified index.
Merges a group of cells defined by the start and end coordinates.
Removes the specified row from the table.
Replaces the content of a cell at the specified coordinates.
Returns an enumerator that iterates through the table rows.
Returns an enumerator that iterates through the table cells.