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
VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.