IWxStyle.TextMarginBottom

Syntax

TextMarginBottom: Double;

Description

The TextMarginBottom property determines text bottom margin.

Comments

If the values are negative, margin is calculated from the opposite side.

Example

Executing the example requires that the repository contains a workspace with the IWSTYLE identifier that contains a shape.

Add links to the Andy, Drawing, Metabase system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Wsp: IWxWorkspace;
    Shape: IWxShape;
    Style: IWxStyle;
Begin
    // Get workspace for editing
    Mb := MetabaseClass.Active;
    Wsp := Mb.ItemById("IWSTYLE").Edit As IWxWorkspace;
    Wsp.BeginUpdate;
    Shape := Wsp.Shapes.Item(0);
    Shape.Text := "Text";
    Style := Shape.Style;
    Style.TextFontSize := 14;
    Style.TextFontBrushColor := GxColor.FromName("Red");
    Style.TextMarginBottom := 12;
    Wsp.EndUpdate;
    (Wsp As IMetabaseObject).Save;
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