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");

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or
Create an account

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