SpreadJS Documentation
backColor Method
The backcolor of the picture.
Gets or sets the background color of the picture.
Syntax
var instance = new GcSpread.Sheets.Picture(name, src, x, y, width, height);
var returnValue; // Type: Object
returnValue = instance.backColor(value);
function backColor( 
   value : string
) : Object;

Parameters

value
The backcolor of the picture.

Return Value

The backcolor of the picture.
Example
This example sets the backcolor of the picture.
activeSheet.addPicture("f2","Event.png",2,2,6,6);
var picture = activeSheet.findPicture("f2");
picture.pictureStretch(GcSpread.Sheets.ImageLayout.Center);
picture.backColor("Blue");
picture.borderWidth(2);
picture.borderColor("Red");
See Also

Reference

Picture type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.