SpreadJS Documentation
defaults Field
Indicates the default row height and column width of the sheet.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: Object
value = instance.defaults;
var defaults : Object;
Example
This example sets the default row height and column width.
activeSheet.isPaintSuspended(true);
activeSheet.defaults.rowHeight = 40;
activeSheet.defaults.colWidth = 30;
activeSheet.isPaintSuspended(false);
Remarks

The following settings are available:

defaults.rowHeight number type Specifies default row height of viewport cells.
defaults.colWidth number type Specifies default column width if viewport cells.
defaults.rowHeaderColWidth number type Specifies default column width of row header cells.
defaults.colHeaderRowHeight number type Specifies default row height of column header cells.

See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.