Class HorizontalAlignment
The horizontal alignment relative to the page.
Inheritance
Namespace: IronPdf.Editing
Assembly: IronPdf.dll
Syntax
public sealed class HorizontalAlignment : Enum
The HorizontalAlignment enumeration in IronPDF declares horizontal placement of stamps, watermarks, and overlay content relative to the page.
Part of the IronPdf.Editing namespace, it includes Left, Center, and Right (3 total).
Pair with VerticalAlignment when positioning a stamp on the canvas. See Custom Watermarks for the 3x3 placement grid used by ApplyStamp and ApplyWatermark.
Fields
Center
Alignment along the center of the page.
Declaration
public const HorizontalAlignment Center
Field Value
| Type | Description |
|---|---|
| HorizontalAlignment |
Left
Alignment along the left side of the page.
Declaration
public const HorizontalAlignment Left
Field Value
| Type | Description |
|---|---|
| HorizontalAlignment |
Right
Alignment along the right side of the page.
Declaration
public const HorizontalAlignment Right
Field Value
| Type | Description |
|---|---|
| HorizontalAlignment |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |