Table of Contents

Class Typography

Namespace
BitMiracle.Docotic.Pdf.Layout
Assembly
BitMiracle.Docotic.Pdf.Layout.dll

Defines text styles to use throughout the document.

public class Typography
Inheritance
Typography
Inherited Members

Remarks

To redefine built-in styles, access document's typography object using Typography(Action<Typography>) method.

You can also create a custom typography object and apply it using Typography(Typography) method. A custom object can have additional text styles and/or some state.

The following methods use Typography objects:

The library automatically applies Document, Header, Body, Footer, and Hyperlink styles to corresponding containers. You can explicitly apply these and any other styles from a typography object to any container.

The Getting Started with Layout API article provides essential information on how to generate PDFs with the API.

Check out the other articles and code samples on the C# PDF generation library page.

Constructors

Typography(Document)

Initializes a new instance of the Typography class.

Properties

Body

Gets or sets the text style for Content() containers.

Caption

Gets or sets the text style for captions.

Document

Gets or sets the base style applied to all text elements.

Emphasis

Gets or sets the text style for emphasized text.

Footer

Gets or sets the text style for Footer() containers.

Footnote

Gets or sets the text style for footnotes.

Header

Gets or sets the text style for Header() containers.

Heading1

Gets or sets the text style for the largest (first-level) heading.

Heading2

Gets or sets the text style for second-level headings.

Heading3

Gets or sets the text style for third-level headings.

Hyperlink

Gets or sets the text style for hyperlinks.

Parent

Gets the predefined text style for loading text properties from parent layout elements.

Plain

Gets or sets the text style for plain text.

Strong

Gets or sets the text style for important text.

SubTitle

Gets or sets the text style for subtitles.

Title

Gets or sets the text style for titles.