SpreadJS製品ヘルプ
textDecoration フィールド
GC.Spread.Sheets 名前空間 > Style クラス : textDecoration フィールド
テキストに追加される装飾を示します。
シンタックス
var instance = new GC.Spread.Sheets.Style(backColor,
                                         foreColor,
                                         hAlign,
                                         vAlign,
                                         font,
                                         themeFont,
                                         formatter,
                                         borderLeft,
                                         borderTop,
                                         borderRight,
                                         borderBottom,
                                         diagonalDown,
                                         diagonalUp,
                                         locked,
                                         textIndent,
                                         wordWrap,
                                         shrinkToFit,
                                         backgroundImage,
                                         cellType,
                                         backgroundImageLayout,
                                         tabStop,
                                         textDecoration,
                                         imeMode,
                                         name,
                                         parentName,
                                         watermark,
                                         cellPadding,
                                         labelOptions,
                                         labelOptions.alignment,
                                         labelOptions.visibility,
                                         labelOptions.font,
                                         labelOptions.foreColor,
                                         labelOptions.margin,
                                         isVerticalText,
                                         textOrientation,
                                         applyFont,
                                         applyFill,
                                         applyAlignment,
                                         applyBorder,
                                         applyProtection,
                                         applyNumberFormat);
var value; // Type: TextDecorationType
value = instance.textDecoration;
var textDecoration : TextDecorationType;
使用例
次のサンプルコードは、textDecorationプロパティを使用します。
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");
関連トピック

参照

Style クラス