ITabObject.Location

Syntax

Location: IGxPointF;

Description

The Location property determines the top left corner of the object, located on the table sheet.

Example

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

As a result the image "c:\View.bmp" is created on the table sheet, then the coordinates of the top left corner of the image are placed to the «Point» variable

See also:

ITabObject