SpreadJS Documentation
backgroundImageLayout Method
GC.Spread.Sheets Namespace > CellRange type : backgroundImageLayout Method
The cell background image layout.
Gets or sets the background image layout for the cell.
Syntax
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var returnValue; // Type: any
returnValue = instance.backgroundImageLayout(value);
function backgroundImageLayout( 
   value : ImageLayout
) : any;

Parameters

value
The cell background image layout.

Return Value

If no value is set, returns the cell background image layout; otherwise, returns the cell.
Example
The following examples set the image layout.
var layout = GC.Spread.Sheets.ImageLayout.stretch;
activeSheet.getCell(1,1).backgroundImageLayout(layout);
var layout = GC.Spread.Sheets.ImageLayout.stretch;
activeSheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).backgroundImageLayout(layout);
var layout = GC.Spread.Sheets.ImageLayout.stretch;
activeSheet.getRange(-1, 1, -1, 1, GC.Spread.Sheets.SheetArea.viewport).backgroundImageLayout(layout);
See Also

Reference

CellRange type
Adding a Background Image