SpreadJS Documentation
GC.Spread.Sheets Namespace / Worksheet type / pictures Field
In This Topic
    pictures Field
    In This Topic
    Picture manager for the sheet.
    Syntax
    var instance = new GC.Spread.Sheets.Worksheet(name);
    var value; // Type: FloatingObjectCollection
    value = instance.pictures;
    var pictures : FloatingObjectCollection;
    Example
    This example adds a picture.
    activeSheet.pictures.add("f2","Event.png",2,2,10,10);
    var picture = activeSheet.pictures.get("f2");
    picture.pictureStretch(GC.Spread.Sheets.ImageLayout.center);
    picture.backColor("Blue");
    picture.borderWidth(2);
    picture.borderColor("Red");
    picture.borderStyle("dotted");
    picture.borderRadius(5);
    See Also

    Reference

    Worksheet type