SpreadJS Documentation
getAutoFitHeight Method
The cell's value.
The cell's text.
The cell's actual value.
The current sheet's zoom factor.
The context associated with the cell type. See the Remarks for more information.
Gets a cell's height that can be used to handle the row's automatic fit.
Syntax
var instance = new GcSpread.Sheets.CustomCellType();
var returnValue; // Type: number
returnValue = instance.getAutoFitHeight(value, text, cellStyle, zoomFactor, context);
function getAutoFitHeight( 
   value : object,
   text : string,
   cellStyle : Style,
   zoomFactor : number,
   context : object
) : number;

Parameters

value
The cell's value.
text
The cell's text.
cellStyle
The cell's actual value.
zoomFactor
The current sheet's zoom factor.
context
The context associated with the cell type. See the Remarks for more information.

Return Value

Returns the cell's height that can be used to handle the row's automatic fit.
Remarks

The context parameter can include the following items:

Item Type Description
context.sheet GcSpread.Sheets.Sheet instance Indicates the current sheet.
context.row number The row index.
context.col number The column index.
context.sheetArea GcSpread.Sheets.SheetArea The current sheet area.

 

See Also

Reference

CustomCellType type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.