[]
        
(Showing Draft Content)

GC.Spread.Sheets.HorizontalAlign

枚举: HorizontalAlign

Spread.Sheets.HorizontalAlign

水平对齐

代码示例

//本例使用的是HorizontalAlign类型
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

枚举值成员

枚举值成员

center

center = 1

单元格内容居中


centerContinuous

centerContinuous = 4

单元格内容跨列居中


distributed

distributed = 5

指示单元格内每行文本的每个“单词”均匀分布在单元格的宽度上,并在左右两侧对齐


general

general = 3

水平对齐基于值类型


left

left = 0

单元格内容左对齐


right = 2

单元格内容右对齐