RightMargin Property

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

Applies to: TextBlock object

Syntax

[[Let] sinleRet =] object.RightMargin

[Let] object.RightMargin = rightMarginSet

The RightMargin property syntax has these parts:

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

Remarks

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

The RightMargin 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 RightMargin as a table parameter, use the CDPT_RIGHTMARGIN constant tag.

Example

This example demonstrates how to increase the distance between the text and right 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 right border of the text box by 20 points.
s.TextBlock.RightMargin = 20
' Inform ConceptDraw Engine about the changes for re-drawing.
s.PropertyChanged(CDPT_RIGHTMARGIN)