DOM.Elements.TableElements.TableCell
Represents a single cell within a table. Acan contain paragraphs, text, images, or other elements, and supports styling, content replacement, and splitting (not yet implemented).
5 members
Constructors
TableCell
TableCell()Initializes a new instance of theclass. By default, a single empty paragraph is added to the cell.
Properties
Gets or sets the style applied to this table cell, including borders, shading, padding, and other cell-level formatting properties.
Methods
AddText
IText AddText(string text)Adds a newnode containingto this container.
Parameters
- text
- The string content to add.
Returns
IText
The createdinstance.
SetContent
ITableCell SetContent(IElement content)Sets the content of the current cell. If the provided content is another, it replaces this cell entirely. Otherwise, all existing children are removed and the new content is added as a child element.
Parameters
- content
- The element to set as the content of this cell.
Returns
ITableCell
The currentinstance to allow fluent chaining.
Split
ITableCell Split(int toRow, int toColumn)Splits the current cell into multiple cells, covering the specified row and column span.
Parameters
- toRow
- The number of rows to span.
- toColumn
- The number of columns to span.
Returns
ITableCell
The currentinstance.
Exceptions
- System.NotImplementedException: Always thrown until implemented.