VegaRise.NET
Back to TableCell

AddTextMethod

Definition

Namespace
DOM.Elements.TableElements
Assembly
DOM.dll

Adds a new node containing to this container. Text text

IText AddText(string text)

Parameters

text
The string content to add.

Returns

IText

The created instance. IText

Remarks

If the cell already contains at least one paragraph, the text is appended to the last paragraph. Otherwise, a new paragraph is created and the text is added to it.

Examples

csharp
1var cell = new TableCell();
2cell.AddText("Line 1");
3cell.AddText("Line 2"); // Appended to the same paragraph
4
VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in