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:
- TextStyle(Func<Typography, TextStyle>)
- TextStyle(Func<Typography, TextStyle>)
- Style(Func<Typography, TextStyle>)
- Style(Func<Typography, TextStyle>)
- Style(Func<Typography, TextStyle>)
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 .NET PDF generator article provides essential information on how to generate PDFs with the API.
Constructors
- Typography(Document)
Initializes a new instance of the Typography class.
Properties
- 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.
- Footnote
Gets or sets the text style for footnotes.
- 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.