ITabObject.CenterAtView

Syntax

CenterAtView;

Description

The CenterAtView method scrolls table rows and columns in such a way, that the current object is located in the center of the table.

Example

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

Var

Obj: ITabObject;

Size: IGxRectF;

Begin

Size := New GxRectF.Create(100, 100, 110, 110);

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

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

Obj.CenterAtView;

End Sub Button1OnClick;

As a result on the table sheet an image "c:\View.bmp" is created, then the rows and columns of the table are scrolled in such a way, that the current image is located in the center of the table.

See also:

ITabObject