Table of Contents

Class TextRun

Namespace
MiPdf.Layout
Assembly
MiPdf.dll

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

text string
font PdfFont
fontSize double?
color PdfColor?

Properties

Color

Text color; inherits the paragraph's color if null.

public PdfColor? Color { get; set; }

Property Value

PdfColor?

Font

Font; inherits the paragraph's font if null.

public PdfFont? Font { get; set; }

Property Value

PdfFont

FontSize

Font size in points; inherits the paragraph's font size if null.

public double? FontSize { get; set; }

Property Value

double?

Strikethrough

Draw a line through the text.

public bool Strikethrough { get; set; }

Property Value

bool

Text

The text; line breaks ("\n") are honored.

public string Text { get; set; }

Property Value

string

Underline

Draw a line below the text (position and thickness from the font metrics).

public bool Underline { get; set; }

Property Value

bool