SpreadJS Documentation
hAlign Method
The horizontal alignment.
Gets or sets the horizontal alignment of the contents of the cells in the column.
Syntax
var instance = new GcSpread.Sheets.Column(sheet, index, sheetArea);
var returnValue; // Type: HorizontalAlign
returnValue = instance.hAlign(value);
function hAlign( 
   value : HorizontalAlign
) : HorizontalAlign;

Parameters

value
The horizontal alignment.

Return Value

The horizontal alignment.
Example
This example sets the alignment.
activeSheet.getColumn(3).hAlign(GcSpread.Sheets.HorizontalAlign.right);
Remarks
The default value is HorizontalAlign.center.
See Also

Reference

Column type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.