API Documentation > CorelDRAW > 2025-v26 > StructSpaceProperties > IVGStructSpaceProperties
StructSpaceProperties.LineSpacingType property
Syntax:
Property Get LineSpacingType() As cdrLineSpacingType
Property Let LineSpacingType(ByVal Value As cdrLineSpacingType)
Remarks:
The LineSpacingType property returns or specifies the units used by the StructSpaceProperties.BeforeParagraphSpacing, StructSpaceProperties.AfterParagraphSpacing, and StructSpaceProperties.LineSpacing properties. The LineSpacingType property returns a value of cdrLineSpacingType.
Examples:
The following VBA example sets the spacing of lines at 120% of the font size, the spacing before paragraphs of 100%, and the spacing after paragraphs of 50%.
Sub Test()
With ActiveShape.Text.Selection
  .LineSpacingType = cdrPercentOfPointSizeLineSpacing
  .LineSpacing = 120
  .BeforeParagraphSpacing = 100
  .AfterParagraphSpacing = 50
End With 
End Sub