Table of Contents

Class Font

Namespace
MigraDoc.DocumentObjectModel
Assembly
MigraDoc.DocumentObjectModel.dll

Font represents the formatting of characters in a paragraph.

public sealed class Font : DocumentObject
Inheritance
object
Font
Inherited Members
Extension Methods

Constructors

Font()

Initializes a new instance of the Font class that can be used as a template.

Font(string)

Initializes a new instance of the Font class with the specified name.

Font(string, Unit)

Initializes a new instance of the Font class with the specified name and size.

Properties

Bold

Gets or sets the bold property.

Color

Gets or sets the color property.

Italic

Gets or sets the italic property.

Name

Gets or sets the name of the font.

Size

Gets or sets the size of the font.

Subscript

Gets or sets the subscript property.

Superscript

Gets or sets the superscript property.

Underline

Gets or sets the underline property.

Values

Gets the underlying internal nullable values for the properties of this document object.

Methods

ApplyFont(Font)

Applies all non-null properties of a font to this font.

Clone()

Creates a copy of the Font.