Version

LineSpacingAuto Property

Returns or sets a value which determines the amount of vertical spacing that appears between lines of text in the associated paragraph, expressed as a multiple of the line height for the paragraph. Applicable only when the LineSpacingExact and LineSpacingMinimum properties are not explicitly set.
Syntax
'Declaration
 
Public Property LineSpacingAuto As Nullable(Of Single)
public Nullable<float> LineSpacingAuto {get; set;}
Remarks

The LineSpacingAuto property provides a way for the developer to space lines such that the actual value is automatically calculated by the document consumer based on the line height for the associated paragraph. An explicit value can be specified for line spacing using the LineSpacingExact property.

The LineSpacingExact , LineSpacingMinimum and LineSpacingAuto properties are mutually exclusive; when one property is set, the others are not applicable.

In the case where more than one of the properties is explicitly set, the order of precedence is as follows:

  • LineSpacingExact
  • LineSpacingMinimum
  • LineSpacingAuto

Unlike the LineSpacingExact and LineSpacingMinimum properties, this property's value is always expressed as a multiple of the line height for the paragraph, and is never converted based on the value of the associated WordDocumentWriter's Unit property.

For example, to apply vertical spacing between lines of text that is equal to .5 times the height of the line itself, assign a value of .5 to the LineSpacingAuto property, and leave the values of the LineSpacingExact and LineSpacingMinimum properties at their respective defaults.

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