Add(Image: IGxImage): Integer;
Image. Image which should be added to the table images collection.
The Add method adds an image, specified as the Image input parameter, and returns the index of this image in the collection.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Range: ITabRange;
Image: IGxImage;
i: Integer;
Begin
Range := UiTabSheet1.TabSheet.View.Selection.Range;
Image := GxImage.FromFile("c:\view.bmp");
i := UiTabSheet1.TabSheet.Images.Add(Image);
Range.Style.NormalPicture := i;
Range.Style.EnablePictures := TriState.OnOption;
End Sub Button1OnClick;
As a result the image "c:\view.bmp" is added to the table images collection. Then this image is set for the selected cell range.
See also: