PutAtRange(Range: ITabRange);
PutAtRange(Range: Prognoz.Platform.Tab.ITabRange);
Range — the range, on which the object should be located.
The PutAtRange method places the object to the region, which is passed as the Range input parameter.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Range: ITabRange;
Obj: ITabObject;
Size: IGxRectF;
Begin
Range := UiTabSheet1.TabSheet.View.Selection.Range;
Size := New GxRectF.Create(0, 0, 10, 10);
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: