IGxRectF.Right

Syntax

Right: Double;

Description

The Right property determines the right margin of the real rectangle.

Example

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

Var

Obj: ITabObject;

RectF: IGxRectF;

Begin

RectF:=New GxRectF.Create(0.22,0.45,10.69,10.77);

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

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

RectF.Bottom:=23.45;

RectF.Right:=30.33;

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, the bottom margin is shifted by 23.45 to the bottom, the right margin is shifted by 30.33 to the right.

See also:

IGxRectF