TextMarginRight: Double;
The TextMarginRight property determines text right margin. If the values are negative, margin is calculated from the opposite side.
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.TextMarginRight := 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: