Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Paragraph Class / SetLineSpacing Method / SetLineSpacing(LineSpacingType,Single) Method
The LineSpacingType to use.
The spacing value to use (in points).


In This Topic
    SetLineSpacing(LineSpacingType,Single) Method
    In This Topic
    Sets the line spacing for this Paragraph (in points), manually.
    Syntax
    'Declaration
     
    Public Overloads Sub SetLineSpacing( _
       ByVal spacingType As LineSpacingType, _
       ByVal spacingFloat As Single _
    ) 
    'Usage
     
    Dim instance As Paragraph
    Dim spacingType As LineSpacingType
    Dim spacingFloat As Single
     
    instance.SetLineSpacing(spacingType, spacingFloat)
    public void SetLineSpacing( 
       LineSpacingType spacingType,
       float spacingFloat
    )

    Parameters

    spacingType
    The LineSpacingType to use.
    spacingFloat
    The spacing value to use (in points).
    Remarks

    This method expects a value expressed in points (pt).

    • To convert to 20th of a point (dxa) : pt*20
    • To convert to Inches (in) : pt*72
    • To convert to Centimeters (cm) : in*2.54
    Requirements

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