SpreadJS Documentation
ImageLayout Enumeration
Defines the background image layout.
Members
MemberDescription
CenterSpecifies that the background image displays in the center of the area.
NoneSpecifies that the background image displays in the upper left corner of the area with its original size.
StretchSpecifies that the background image fills the area.
ZoomSpecifies that the background image displays in the area with its original aspect ratio.
Example
This example uses the ImageLayout type.
var cellImage = document.getElementById("circle").src;
var rowImage = "./css/images/quarter1.png";
var colImage = document.getElementById("logo").src;
activeSheet.getCell(3, 3).backgroundImage(cellImage);
activeSheet.getRow(1).backgroundImage(rowImage);
activeSheet.getColumn(1).backgroundImage(colImage);
activeSheet.getRow(1).backgroundImageLayout(GcSpread.Sheets.ImageLayout.Center);

<img src="./css/images/box3.png" id="logo"/>
<img src="./css/images/greencircle.png" id="circle"/>
Inheritance Hierarchy

Object
   GcSpread.Sheets.ImageLayout

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.