PdfTextBoxOptions Class
The layout of a text box (PdfContentBuilder.DrawTextBox).
public sealed class PdfTextBoxOptionsConstructors
| Name | Description |
|---|---|
| PdfTextBoxOptions() |
PdfTextBoxOptions()
PdfTextBoxOptions.cspublic PdfTextBoxOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alignment | Gets or sets the horizontal alignment of the lines. The default is PdfTextAlignment.Left. |
| Hyphenator | 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. |
| LineHeight | Gets or sets the distance between the baselines of two lines, as a multiple of the font size. The default is 1.2. |
Alignment
PdfTextBoxOptions.csGets or sets the horizontal alignment of the lines. The default is PdfTextAlignment.Left.
public PdfTextAlignment Alignment { get; set; }Property value
Hyphenator
PdfTextBoxOptions.csGets 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
Remarks
The soft hyphens (U+00AD) of the text are break opportunities without a hyphenator: the line that ends at one shows a hyphen.