SpreadJS Documentation
autoFitType Method
Whether content will be formatted to fit in cells or in cells and headers.
Gets or sets whether the content will be automatically formatted to fit within a cell.
Syntax
var instance = new GcSpread.Sheets.Spread(host, options);
var returnValue; // Type: AutoFitType
returnValue = instance.autoFitType(value);
function autoFitType( 
   value : AutoFitType
) : AutoFitType;

Parameters

value
Whether content will be formatted to fit in cells or in cells and headers.

Return Value

A value that indicates whether content will be formatted to fit in cells or in cells and headers.
Example
This example uses the autoFitType method.
spread.autoFitType(GcSpread.Sheets.AutoFitType.CellWithHeader);
Remarks
The default value is AutoFitType.Cell.
See Also

Reference

Spread type
AutoFitType Enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.