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)
Usage
Dim paragraph1 As Paragraph
Dim returnValue As Single
returnValue = paragraph1.LineSpacing
Dim sampleValue As Single
paragraph1.LineSpacing = sampleValue
Syntax
Property LineSpacing() As Single
float LineSpacing {get; set;}
property Single LineSpacing{
Single get();
Void set(Single);
}
public float get_LineSpacing();
public void set_LineSpacing(float);
function get LineSpacing() : float;
function set LineSpacing(float);
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Paragraph Interface
Microsoft.Office.Interop.Word Namespace