SpreadJS Documentation
marginLeft Method
The button's left margin relative to the cell.
Gets or sets the button's left margin in pixels relative to the cell.
Syntax
var instance = new GcSpread.Sheets.ButtonCellType();
var returnValue; // Type: number
returnValue = instance.marginLeft(value);
function marginLeft( 
   value : number
) : number;

Parameters

value
The button's left margin relative to the cell.

Return Value

The left margin in pixels.
Example
This example creates a button cell and sets its margins.
var cellType = new GcSpread.Sheets.ButtonCellType();
cellType.buttonBackColor("#FFFF00");
cellType.text("this is a button");
cellType.marginTop(5).marginRight(8).marginBottom(10).marginLeft(12);
activeSheet.getCell(0, 2).cellType(cellType);
activeSheet.setColumnWidth(2, 120.0,GcSpread.Sheets.SheetArea.viewport);
activeSheet.setRowHeight(0, 90.0,GcSpread.Sheets.SheetArea.viewport);
Remarks
The default value is 2 pixels.
See Also

Reference

ButtonCellType class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.