LeftMargin Property

A Single type property. The distance the text inside the text block is offset from the left border of the text box.

Applies to: TextBlock object

Syntax

[[Let] singleRet =] object.LeftMargin

[Let] object.LeftMargin = leftMarginSet

The LeftMargin property syntax has these parts:

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

Remarks

The unit of measure for the LeftMargin property are internal ConceptDraw units (InternalUnit).

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

Example

This example demonstrates how to increase the distance between the text and left border of the text block of an existing shape.

Dim s as Shape
s = thisDoc.ActivePage.ShapeByID(1)
' Increase the distance between the text and the left border of the text box by 20 points.
s.TextBlock.LeftMargin = 20
' Inform ConceptDraw Engine about the changes for re-drawing.
s.PropertyChanged(CDPT_LEFTMARGIN)