Spread.Sheets Documentation
getDefaultStyle Method
The sheet area. If this parameter is not provided, it defaults to viewport.
Gets the default style information for the sheet.
Syntax
var instance = new GC.Spread.Sheets.Worksheet(name);
var value; // Type: Style
value = instance.getDefaultStyle(sheetArea);
function getDefaultStyle( 
   sheetArea : SheetArea
) : Style;

Parameters

sheetArea
The sheet area. If this parameter is not provided, it defaults to viewport.

Return Value

Returns the sheet's default style.
Example
This example uses the getDefaultStyle method.
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);
See Also

Reference

Worksheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.