[]
        
(Showing Draft Content)

GC.Spread.Sheets.HorizontalAlign

Enumeration: HorizontalAlign

Spread.Sheets.HorizontalAlign

Specifies the horizontal alignment.

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");

Table of contents

Enumeration members

Enumeration members

center

center = 1

Indicates that the cell content is centered.


centerContinuous

centerContinuous = 4

Indicates that the cell content is center across selection.


general

general = 3

Indicates that the horizontal alignment is based on the value type.


left

left = 0

Indicates that the cell content is left-aligned.


right = 2

Indicates that the cell content is right-aligned.