IWxStyle.PictureAlignmentHorizontal

Syntax

PictureAlignmentHorizontal: GxAlignment;

Description

The PictureAlignmentHorizontal property determines horizontal 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.PictureAlignmentHorizontal := GxAlignment.Near;

End Sub User;

After executing the example the image in the object is aligned to the left edge.

See also:

IWxStyle