Spread.Sheets Documentation
ImageLayout Enumeration
GC.Spread.Sheets Namespace : 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;
sheet.getCell(3, 3).backgroundImage(cellImage);
sheet.getCell(1, -1).backgroundImage(rowImage);
sheet.getCell(-1, 1).backgroundImage(colImage);
sheet.getCell(1, -1).backgroundImageLayout(GC.Spread.Sheets.ImageLayout.center);

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

Object
   GC.Spread.Sheets.ImageLayout

See Also

Reference

GC.Spread.Sheets Namespace