IWxStyle.TextMarginLeft

Syntax

TextMarginLeft: Double;

Description

The TextMarginLeft property determines text left 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.TextMarginLeft := 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