Version

HorizontalAlignment Property

Returns or sets a value which defines the anchor's horizontal alignment.
Syntax
'Declaration
 
Public Property HorizontalAlignment As AnchorHorizontalAlignment
public AnchorHorizontalAlignment HorizontalAlignment {get; set;}
Remarks

The HorizontalAlignment property is used in conjunction with the RelativeHorizontalPosition to define the horizontal aspect of the anchor's position. An anchor can be aligned with the left or right edge of the page, margin, paragraph, etc.

By default, the HorizontalAlignment property is not applicable, and positioning is implied to be absolute, defined by the value of the HorizontalOffset property. Explicitly setting the HorizontalAlignment property to a value other than 'None' overrides the HorizontalOffset property setting.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also