Version

HorizontalOffset Property

Returns or sets the amount by which the anchor is offset horizontally from the boundary defined by the RelativeHorizontalPosition and HorizontalAlignment properties.
Syntax
'Declaration
 
Public Property HorizontalOffset As System.Single
public System.float HorizontalOffset {get; set;}
Remarks

The RelativeHorizontalPosition and HorizontalAlignment properties define the boundary at which the anchor is positioned; the HorizontalOffset property defines an additional amount of space to be added by which to offset the position. For example, if an anchor is left-aligned with the margin, and the offset is set to 72 pts., the object will appear one inch from the left edge of the margin.

The unit of measurement used to express the property value is defined by the Unit property of the associated WordDocumentWriter.

When the HorizontalAlignment property is set to a value other than 'None', this property is not applicable. The HorizontalOffset property can be restored to its factory setting by assigning 'None' to this property, in which case the HorizontalAlignment property determines the horizontal positioning.

Requirements

Target Platforms: Windows 8.1, 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

View on GitHub