[]
        
(Showing Draft Content)

GC.Spread.Sheets.VerticalAlign

枚举: VerticalAlign

Spread.Sheets.VerticalAlign

垂直对齐方式

代码示例

//本示例使用了垂直对齐类型
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

枚举值成员

枚举值成员

bottom

bottom = 2

单元格内容是底部对齐的


center

center = 1

单元格内容居中


top

top = 0

单元格内容是顶对齐的