PdfTextBoxOptions Class

The layout of a text box (PdfContentBuilder.DrawTextBox).

public sealed class PdfTextBoxOptions

Constructors

NameDescription
PdfTextBoxOptions()

PdfTextBoxOptions()

PdfTextBoxOptions.cs
public PdfTextBoxOptions()

No documentation is available.

Properties

NameDescription
AlignmentGets or sets the horizontal alignment of the lines. The default is PdfTextAlignment.Left.
HyphenatorGets or sets the hyphenator of the words that do not fit at the end of a line, or null to break the lines between the words only. The default is null.
LineHeightGets or sets the distance between the baselines of two lines, as a multiple of the font size. The default is 1.2.

Gets or sets the horizontal alignment of the lines. The default is PdfTextAlignment.Left.

public PdfTextAlignment Alignment { get; set; }

Property value

PdfTextAlignment

Gets or sets the hyphenator of the words that do not fit at the end of a line, or null to break the lines between the words only. The default is null.

public IPdfHyphenator? Hyphenator { get; set; }

Property value

IPdfHyphenator?

Remarks

The soft hyphens (U+00AD) of the text are break opportunities without a hyphenator: the line that ends at one shows a hyphen.

Gets or sets the distance between the baselines of two lines, as a multiple of the font size. The default is 1.2.

public double LineHeight { get; set; }

Property value

double