PdfTextStyle class
Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack
How a span of text looks: font, size, paint and decorations.
public sealed record PdfTextStyle : IEquatable<PdfTextStyle>Inheritance
Implements
Constructors
Section titled “Constructors”PdfTextStyle(PdfFont, double)
Section titled “ PdfTextStyle(PdfFont, double)”How a span of text looks: font, size, paint and decorations.
public PdfTextStyle(PdfFont Font, double Size)Parameters
Section titled “Parameters”Font PdfFont
The font. Characters it lacks are looked up in Fallbacks.
Size double
Font size in points.
Properties
Section titled “Properties”Fill of the glyphs, and of underlines and strikethroughs. Default black; null for outlines only.
public PdfBrush? Brush { get; init; }Property Value
Section titled “Property Value”Fallbacks
Section titled “ Fallbacks”Fonts tried, in order, for characters Font has no glyph for.
public IReadOnlyList<PdfFont> Fallbacks { get; init; }Property Value
Section titled “Property Value”The font.
public PdfFont Font { get; init; }Property Value
Section titled “Property Value”LetterSpacing
Section titled “ LetterSpacing”Extra space after every character, in points; may be negative.
public double LetterSpacing { get; init; }Property Value
Section titled “Property Value”Outline of the glyphs, or null.
public PdfPen? Pen { get; init; }Property Value
Section titled “Property Value”Font size in points.
public double Size { get; init; }Property Value
Section titled “Property Value”Strikethrough
Section titled “ Strikethrough”Draws a line through the text.
public bool Strikethrough { get; init; }Property Value
Section titled “Property Value”Underline
Section titled “ Underline”Draws a line under the text.
public bool Underline { get; init; }Property Value
Section titled “Property Value”WordSpacing
Section titled “ WordSpacing”Extra space added to every space between words, in points.
public double WordSpacing { get; init; }