| GC.Spread.Sheets Namespace : ImageLayout Enumeration |
| Member | Description |
|---|---|
| center | Specifies that the background image displays in the center of the area. |
| none | Specifies that the background image displays in the upper left corner of the area with its original size. |
| stretch | Specifies that the background image fills the area. |
| zoom | Specifies that the background image displays in the area with its original aspect ratio. |
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"/>
Object
GC.Spread.Sheets.ImageLayout