_ParagraphFormat.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 _ParagraphFormat
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 have been set to:
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. For example, LinesToPoints(2) returns the value 24.