VDocs.NET
Back to DOM

DOM.Abstracts.FontPart

Namespace: DOM.Abstracts

2 members

Constructors

FontPart

2 overloads
FontPart()

Initializes a newwith default (unspecified) values.

FontPart(string fontName, double size, bool bold, bool italic)

Initializes a newwith the given font name, size, and optional bold/italic.

Parameters

fontName
Name of the font (e.g., "Arial", "Times New Roman").
size
Font size in points.
bold
If, sets bold style.
italic
If, sets italic style.
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.

C#VB.NET
var doc = new WordDocument();

doc.AddParagraph()
   .AddText("Invoice")
   .SetHeading(HeadingLevel.Title);

doc.Save("invoice.docx");

Create Account

Create your VDocs account.

or

Already have an account? Sign in