Class TextRun
A piece of text with uniform formatting inside a Paragraph.
public sealed class TextRun
- Inheritance
-
TextRun
- Inherited Members
Constructors
TextRun(string, PdfFont?, double?, PdfColor?)
Creates a run; formatting values that are null are inherited from the paragraph.
public TextRun(string text, PdfFont? font = null, double? fontSize = null, PdfColor? color = null)
Parameters
Properties
Color
Text color; inherits the paragraph's color if null.
public PdfColor? Color { get; set; }
Property Value
Font
Font; inherits the paragraph's font if null.
public PdfFont? Font { get; set; }
Property Value
FontSize
Font size in points; inherits the paragraph's font size if null.
public double? FontSize { get; set; }
Property Value
Strikethrough
Draw a line through the text.
public bool Strikethrough { get; set; }
Property Value
Text
The text; line breaks ("\n") are honored.
public string Text { get; set; }
Property Value
Underline
Draw a line below the text (position and thickness from the font metrics).
public bool Underline { get; set; }