SpreadJS 13
GC.Spread.Sheets Namespace / HorizontalAlign Enumeration
In This Topic
    HorizontalAlign Enumeration
    In This Topic
    Specifies the horizontal alignment.
    Members
    MemberDescription
    centerIndicates that the cell content is centered.
    generalIndicates that the horizontal alignment is based on the value type.
    leftIndicates that the cell content is left-aligned.
    rightIndicates that the cell content is right-aligned.
    Example
    This example uses the HorizontalAlign type.
    var style = new GC.Spread.Sheets.Style();
    style.font = "8pt Arial";
    style.hAlign = GC.Spread.Sheets.HorizontalAlign.center;
    style.vAlign = GC.Spread.Sheets.VerticalAlign.center;
    activeSheet.setStyle(1,1,style,GC.Spread.Sheets.SheetArea.viewport);
    activeSheet.getCell(1,1).value("B2");
    Inheritance Hierarchy

    Object
       GC.Spread.Sheets.HorizontalAlign

    See Also