PictureMarginLeft: Double;
The PictureMarginLeft property determines image margin from the left edge of a control.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub User;
Var
Ws : IWxWorkspace;
shape : IWxShape;
style : IWxStyle;
Begin
Shape := Ws.Shapes.Item(0);
Shape.Picture := GxImage.FromFile("c:\1.bmp");
Style := Shape.Style;
Style.PictureMarginLeft := 5;
End Sub User;
After executing the example an image margin is set from the left edge of an object.
See also: