Javascript (Specification) | |
---|
function marginLeft(
: number
) : any; |
パラメータ
- value
- セルに対するボタンの左マージン。
戻り値の型
値が設定されていない場合は、左マージン(ピクセル単位)を返します。値が設定されている場合は、コマンドボタンセル型を返します。
This example creates a button cell and sets its margins.
var cellType = new GC.Spread.Sheets.CellTypes.Button();
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,GC.Spread.Sheets.SheetArea.viewport);
activeSheet.setRowHeight(0, 90.0,GC.Spread.Sheets.SheetArea.viewport);