PeachPDF
PeachPDF.Layout
ITextStyle Interface
Text styling shared by a page/container’s DefaultTextStyle and an individual
ITextSpan. Every member maps directly onto an existing, already-fully-supported CSS
property.
public interface ITextStyle
Derived
↳ ITextSpan
| Methods | |
|---|---|
| BackgroundColor(PdfColor) | Sets a background color behind the text’s own inline box. |
| Bold() | Sets font-weight: bold (700). |
| BreakAnywhere() | Allows a line to break anywhere between characters when it would otherwise overflow (word-break: break-all). |
| Direction(PdfTextDirection) | Sets the base text direction, for bidi/RTL content. |
| FontColor(PdfColor) | Sets the text color. |
| FontFamily(string) | Sets the font family. |
| FontFamily(string, string) | Sets the font family with an explicit fallback. |
| FontFeature(string, bool) | Enables or disables an OpenType font feature (e.g. "liga", "smcp"). |
| FontSize(PdfLength) | Sets the font size. |
| FontWeight(int) | Sets a specific numeric font-weight (1-1000). |
| Italic() | Sets font-style: italic. |
| LetterSpacing(PdfLength) | Sets the extra space added between characters. |
| LineHeight(double) | Sets the line height (as a bare multiplier of the font size, e.g. 1.5). |
| Overline() | Draws a line over the text (text-decoration-line: overline). |
| Strikethrough() | Strikes through the text (text-decoration-line: line-through). |
| Subscript() | Lowers and shrinks the text (vertical-align: sub). |
| Superscript() | Raises and shrinks the text (vertical-align: super). |
| Underline() | Underlines the text (text-decoration-line: underline). |
| WordSpacing(PdfLength) | Sets the extra space added between words. |