Table of Contents

Enum TextAlignment

Namespace
MiPdf.Graphics
Assembly
MiPdf.dll

Horizontal alignment of text.

public enum TextAlignment

Fields

Left = 0

Aligned to the left edge.

Center = 1

Centered.

Right = 2

Aligned to the right edge.

Justify = 3

Justified 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.