BeforeSpacing Property

A Single type property. The amount of space inserted before each paragraph in the shape's text block.

Applies to: Paragraph object

Syntax

[Let] singleRet = object.BeforeSpacing

[Let] object.BeforeSpacing = beforeSpacingSet

The BeforeSpacing property syntax has these parts:

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

Remarks

The interval is specified in InternalUnit (internal units of measure of ConceptDraw).

The BeforeSpacing property is also a table parameter of the shape, to which the object paragraph belongs. That is, its value can be defined by a formula. To work with BeforeSpacing as a table parameter, use the CDPT_PARA_BEFORESPACING constant tag.

Example

This example shows how to increase the spacing between the first and the second paragraphs. It assumes that there is a shape with at least three paragraphs of text on the current page.

Dim s as Shape
s = thisDoc.ActivePage.ShapeByID(1)
' Increase spacing between the first and second paragraphs by 150 points s.Paragraph(2).BeforeSpacing = 150 ' Inform ConceptDraw Engine about the changes to recalculate and redraw the document
s.PropertyChanged(CDPT_PARA_BEFORESPACING)

 

See Also

SetParaBeforeSpacing method