var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: Style value = instance.getDefaultStyle(sheetArea);
パラメータ
- sheetArea
- シート領域。このパラメーターが指定されていない場合は、viewportにデフォルト設定されます。
戻り値の型
シートのデフォルトスタイルを返します。
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: Style value = instance.getDefaultStyle(sheetArea);
var defaultStyle = new GC.Spread.Sheets.Style(); defaultStyle.backColor = "LemonChiffon"; defaultStyle.foreColor = "Red"; defaultStyle.borderLeft = new GC.Spread.Sheets.LineBorder("Green"); defaultStyle.borderTop = new GC.Spread.Sheets.LineBorder("Green"); defaultStyle.borderRight = new GC.Spread.Sheets.LineBorder("Green"); defaultStyle.borderBottom = new GC.Spread.Sheets.LineBorder("Green"); activeSheet.setDefaultStyle(defaultStyle, GC.Spread.Sheets.SheetArea.viewport); var cstyle = activeSheet.getDefaultStyle(GC.Spread.Sheets.SheetArea.viewport); alert(cstyle.backColor);
var defaultStyle = new GC.Spread.Sheets.Style(); defaultStyle.backColor = "LemonChiffon"; defaultStyle.foreColor = "Red"; defaultStyle.borderLeft = new GC.Spread.Sheets.LineBorder("Green"); defaultStyle.borderTop = new GC.Spread.Sheets.LineBorder("Green"); defaultStyle.borderRight = new GC.Spread.Sheets.LineBorder("Green"); defaultStyle.borderBottom = new GC.Spread.Sheets.LineBorder("Green"); activeSheet.setDefaultStyle(defaultStyle, GC.Spread.Sheets.SheetArea.viewport); var cstyle = activeSheet.getDefaultStyle(GC.Spread.Sheets.SheetArea.viewport); alert(cstyle.backColor);