API Documentation > CorelDRAW > 2025-v26 > StructSpaceProperties > IVGStructSpaceProperties
StructSpaceProperties.BeforeParagraphSpacing property
Syntax:
Property Get BeforeParagraphSpacing() As Single
Property Let BeforeParagraphSpacing(ByVal Value As Single)
Remarks:
The BeforeParagraphSpacing property returns or specifies the amount of space before the first line of a paragraph. This value varies depending on the type of paragraph spacing specified by the StructSpaceProperties.LineSpacingType property; for example, spacing can be measured as a percentage of character height, in points, or as a percentage of point size.
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