GcSpread.Sheets Namespace : HorizontalAlign Enumeration |
Member | Description |
---|---|
center | Indicates that the cell content is centered. |
general | Indicates that the horizontal alignment is based on the value type. |
left | Indicates that the cell content is left-aligned. |
right | Indicates that the cell content is right-aligned. |
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");
Object
GcSpread.Sheets.HorizontalAlign