[]
        
(Showing Draft Content)

GC.Spread.Sheets.TextDecorationType

枚举: TextDecorationType

Spread.Sheets.TextDecorationType

文本样式的类型

代码示例

//本例使用TextDecorationType枚举
activeSheet.getCell(0, 0).textDecoration(GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getRange(1, -1, 1, -1).textDecoration(GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getRange(-1, 1, -1, 1).textDecoration(GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.lineThrough | GC.Spread.Sheets.TextDecorationType.underline);
var style = new GC.Spread.Sheets.Style();
style.textDecoration = GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.underline;
activeSheet.setStyle(1, 1, style, GC.Spread.Sheets.SheetArea.viewport);
activeSheet.getCell(0, 0).value("Test");
activeSheet.getCell(1, 0).value("Test");
activeSheet.getCell(0, 1).value("Test");

Table of contents

枚举值成员

枚举值成员

doubleUnderline

doubleUnderline = 8

在文本显示双行线


lineThrough

lineThrough = 2

显示横穿文本线


none

none = 0

正常文本


overline

overline = 4

在文本上方线


underline

underline = 1

在文本显示下划线