SpreadJS 14
Features / Floating Objects / Floating Pictures
In This Topic
    Floating Pictures
    In This Topic

    You can add floating pictures to the sheet.

    Floating pictures

    You can set a backcolor, border, and stretch the picture using the Picture class.

    You can select floating pictures by using the left or right mouse button. You can use the Tab key or Shift+Tab to navigate between multiple floating pictures. You can select multiple floating pictures by holding down Ctrl or Shift while clicking the right mouse button.

    You can cut, copy, or paste the floating picture with standard shortcut keys. You can also use undo and redo actions with floating pictures.

    Using Code

    This example adds a floating picture to the sheet using the pictures.add method.

    JavaScript
    Copy Code
    activeSheet.pictures.add("f2","tsoutline.png",100,60,200,100);
    
    See Also