LineSpacing Property

A Single type property. Specifies the distance between the lines of the paragraph.

Applies to: Paragraph object

Syntax

[Let] singleRet = object.LineSpacing

[Let] object.LineSpacing = lineSpacingSet

The LineSpacing property syntax has these parts:

Part Description
object Required. An expression that returns a Paragraph object.
singleRet Optional. A Single type variable.
lineSpacingSet Required. An expression that returns a Single value.

Remarks

The line spacing is specified in internal ConceptDraw units (InternalUnit).

The LineSpacing property is also a table parameter of the shape which contains the object paragraph, that is, its value can be described by a formula. To work with LineSpacing as a table parameter, use the CDPT_PARA_LINESPACING constant tag.

Example

This example demonstrates how to increase the spacing between the lines in a paragraph of text. It assumes there is a shape which contains text on the active page of the document.

Dim s as Shape
s = thisDoc.ActivePage.ShapeByID(1)
' Set line spacing. s.Paragraph(1).LineSpacing = 100 ' Inform ConceptDraw Engine about the changes for re-drawing
s.PropertyChanged(CDPT_PARA_LINESPACING)

 

See Also

SetParaLineSpacing method