IWxStyle.TextMarginBottom

Syntax

TextMarginBottom: Double;

Description

The TextMarginBottom property determines text bottom margin. If the values are negative, margin is calculated from the opposite side.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UserProc;

Var

ws: IWxWorkspace;

Shape: IWxShape;

Style: IWxStyle;

Begin

ws.BeginUpdate;

Shape := ws.Shapes.Item(1);

Shape.Text := "Text";

Style := Shape.Style;

Style.TextFontSize := 14;

Style.TextFontBrushColor := GxColor.FromName("Red");

Style.TextMarginBottom := 12;

ws.EndUpdate;

End Sub UserProc;

After executing the example the object will contain text of the defined color and size and with the set margin.

See also:

IWxStyle