IWxStyle.PictureMarginTop

Syntax

PictureMarginTop: Double;

Description

The PictureMarginTop property determines image margin from the upper edge of a control.

Example

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.PictureMarginTop := 5;

End Sub User;

After executing the example an image margin is set from the upper edge of an object.

See also:

IWxStyle