IGxRect.Size

Syntax

Size: IGxSize;

Description

The Size property determines the size of the integer rectangle.

Example

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

Var

Obj: ITabObject;

Rect: IGxRect;

Size: IGxSize;

Begin

Rect:=New GxRect.Create(20,20,34,36);

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

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

Size:=Obj.Size.ToSize;

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 Size variable contains the size of the rectangle, with which the image is bound.

See also:

IGxRect