SpreadJS Documentation
hAlign Method
The horizontal alignment.
Gets or sets the horizontal alignment of the contents of the cell.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: HorizontalAlign
returnValue = instance.hAlign(value);
function hAlign( 
   value : HorizontalAlign
) : HorizontalAlign;

Parameters

value
The horizontal alignment.

Return Value

The horizontal alignment of the contents of the cell.
Example
This example sets the alignment.
activeSheet.getCell(1,1).hAlign(GcSpread.Sheets.HorizontalAlign.center);
Remarks
The default value is HorizontalAlign.general.
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.