VegaRise.NET
Back to TableCell

SetContentMethod

Definition

Namespace
DOM.Elements.TableElements
Assembly
DOM.dll

Sets the content of the current cell.

ITableCell SetContent(IElement content)

Parameters

content
The element to set as the content of this cell.

Returns

ITableCell

The current instance to allow fluent chaining. ITableCell

Remarks

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. TableCell

Examples

csharp
1var cell = new TableCell();
2cell.SetContent(new Paragraph().AddText("Fresh content"));
3
VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in