SpreadJS Documentation
VerticalAlign Enumeration
Indicates the vertical alignment.
Members
MemberDescription
bottomIndicates that the cell content is bottom-aligned.
centerIndicates that the cell content is centered.
topIndicates that the cell content is top-aligned.
Example
This example uses the VerticalAlign type.
var style = new GcSpread.Sheets.Style();
style.font = "8pt Arial";
style.hAlign = GcSpread.Sheets.HorizontalAlign.center;
style.vAlign = GcSpread.Sheets.VerticalAlign.center;
activeSheet.setStyle(1,1,style,GcSpread.Sheets.SheetArea.viewport);
activeSheet.getCell(1,1).value("B2");
Inheritance Hierarchy

Object
   GcSpread.Sheets.VerticalAlign

See Also

Reference

GcSpread.Sheets Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.