Class TextStyle
- Namespace
- SoftZenPdf.Layout
- Assembly
- SoftZenPdf.dll
The look of a run of text. Records compare by value; create variants with with.
public sealed record TextStyle : IEquatable<TextStyle>
- Inheritance
-
TextStyle
- Implements
- Inherited Members
Properties
- Background
A highlight colour behind the text, or null for none.
- Bold
Whether the text is bold.
- Color
The text colour. Defaults to black.
- Default
The default style: 11 pt black text in the default family.
- FontFamily
A family or comma-separated list of families, resolved by the document's FontProvider. null uses its default family.
- FontSize
The font size in points. Defaults to 11.
- Italic
Whether the text is italic.
- Link
A link target: an absolute URI (such as
https://example.com/ormailto:), or#idfor the block whose Id isidin the same document. null for no link.
- Strikethrough
Whether the text is struck through.
- Underline
Whether the text is underlined.
- VerticalPosition
Superscript or subscript.