VegaRise.NET
Back to VDocs

AddParagraphMethod

Definition

Namespace
DOM
Assembly
VDocs.dll

Adds a new paragraph to the document.

IParagraph AddParagraph(IParagraph paragraph)

Parameters

paragraph
Optional paragraph to add. If, a new empty paragraph is created.

Returns

IParagraph

The added instance. IParagraph

Examples

csharp
1var doc = new VDocs();
2
3// Add an empty paragraph
4var p1 = doc.AddParagraph();
5
6// Add a paragraph with text
7var p2 = new Paragraph();
8p2.AddText("Hello, World!");
9doc.AddParagraph(p2);
10
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.