ITabObject.PutAtRange

Syntax

PutAtRange(Range: ITabRange);

Parameters

Range — the range, on which the object should be located.

Description

The PutAtRange method places the object to the region, which is passed as the Range input parameter.

Example

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

As a result the image "c:\View.bmp" is created on the table sheet, then this image is placed in the selected cell range.

See also:

ITabObject