Paragraph.LineSpacing Property

Returns or sets the line spacing (in points) for the specified paragraphs.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property LineSpacing As Single
    Get
    Set
'Usage
Dim instance As Paragraph
Dim value As Single

value = instance.LineSpacing

instance.LineSpacing = value
float LineSpacing { get; set; }

Property Value

Type: System.Single

Remarks

The LineSpacing property can be set after the LineSpacingRule property has been set to the following:

wdLineSpaceAtLeast - The line spacing can be greater than or equal to, but never less than, the specified LineSpacing value.

wdLineSpaceExactly - The line spacing never changes from the specified LineSpacing value, even if a larger font is used within the paragraph.

wdLineSpaceMultiple - A LineSpacing property value must be specified, in points.

Use the LinesToPoints method to convert a number of lines to the corresponding value in points.

See Also

Reference

Paragraph Interface

Paragraph Members

Microsoft.Office.Interop.Word Namespace