ITabObject.Size

Syntax

Size: IGxSizeF;

Description

The Size property determines the size of the object, located on the table sheet.

Example

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Obj: ITabObject;
    Size: IGxRectF;
    SizeF: IGxSizeF;
Begin
    Size := New gxrectf.Create(001010);
    Obj := UiTabSheet1.TabSheet.Objects.Add("PrxPicture", Size);
    (Obj As IPrxPicture).Image := GxImage.FromFile("c:\Image.bmp");
    SizeF := Obj.Size;
End Sub Button1OnClick;

After executing the example the "c:\Image.bmp" image is created on the table sheet, after that the "SizeF" variable contains its size.

See also:

ITabObject