Previous Document Next Document

Object Model Reference : Classes : S : StructSpaceProperties : Properties : StructSpaceProperties.LineSpacing


StructSpaceProperties.LineSpacing

Property LineSpacing As Single

Description

Member of StructSpaceProperties

The LineSpacing property returns or specifies the amount of space between the lines (that is, the leading) of a paragraph. This value varies depending on the type of line spacing specified by the StructSpaceProperties.LineSpacingType property; for example, line spacing can be measured as a percentage of character height, in points, or as a percentage of point size.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.