IGxRectF.Top

Syntax

Top: Double;

Description

The Top property determines the top margin of the real rectangle.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Obj: ITabObject;

RectF: IGxRectF;

Begin

RectF:=New GxRectF.Create(0.31,0.38,10.79,12.56);

Obj:=UiTabSheet1.TabSheet.Objects.Add("PrxPicture", RectF);

(Obj As IPrxPicture).Image:=GxImage.FromFile("c:\1.bmp");

RectF.Top:=25.7;

RectF.Left:=30.23;

Obj.Rectangle:=RectF;

End Sub Button1OnClick;

After executing the example clicking the button creates an image in the regular report. The image source is the 1.bmp file. The image is created at the top left corner and is shifted by 25.7 to the bottom and by 30.23 to the right.

See also:

IGxRectF