IGxRectF.Width

Syntax

Width: Double;

Description

The Width property determines the width of the real rectangle.

Example

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

Var

Obj: ITabObject;

RectF: IGxRectF;

Begin

RectF:=New GxRectF.Create(0.56,0.89,10.78,13.65);

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

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

RectF.Width:=52.5;

RectF.Height:=52.5;

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, its width and height are stretched to 52.5.

See also:

IGxRectF