IWxStyle.PictureAlignmentVertical

Syntax

PictureAlignmentVertical: GxAlignment;

Description

The PictureAlignmentVertical property determines vertical image alignment within 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.PictureAlignmentVertical := GxAlignment.Near;

End Sub User;

After executing the example an image within an object is aligned to the upper edge.

See also:

IWxStyle