VDocs.NET
Back to DOM

DOM.Elements.TableElements.TableCell

Namespace: DOM.Elements.TableElements

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

Style

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.
VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in