Enum TextAlignment
Horizontal alignment of text.
public enum TextAlignment
Fields
Left = 0Aligned to the left edge.
Center = 1Centered.
Right = 2Aligned to the right edge.
Justify = 3Justified to both edges, except the last line of a paragraph (layout engine and DrawTextBox(string, PdfFont, double, PdfRectangle, TextAlignment, VerticalAlignment, PdfColor?, double)); single-line methods such as DrawText(string, PdfFont, double, double, double, PdfColor?, TextAlignment, bool) treat it like Left. Form fields do not support it.