Spread.Sheets Documentation
vAlign Method
GC.Spread.Sheets Namespace > CellRange type : vAlign Method
The vertical alignment.
Gets or sets the vertical alignment of the contents of the cell.
Syntax
var instance = new GC.Spread.Sheets.CellRange(sheet, row, col, rowCount, colCount, sheetArea);
var returnValue; // Type: any
returnValue = instance.vAlign(value);
function vAlign( 
   value : VerticalAlign
) : any;

Parameters

value
The vertical alignment.

Return Value

If no value is set, returns the vertical alignment of the contents of the cell; otherwise, returns the cell.
Example
The following examples set the alignment.
activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).vAlign(GC.Spread.Sheets.VerticalAlign.bottom);
activeSheet.getCell(1,1).vAlign(GC.Spread.Sheets.VerticalAlign.center);
activeSheet.getRange(-1, 3, -1, 1, GC.Spread.Sheets.SheetArea.viewport).vAlign(GC.Spread.Sheets.VerticalAlign.top);
Remarks
The default value is VerticalAlign.center.
See Also

Reference

CellRange type