SpreadJS製品ヘルプ
watermark フィールド
GC.Spread.Sheets 名前空間 > Style クラス : watermark フィールド
透かしの内容を示します。
シンタックス
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);
var value; // Type: string
value = instance.watermark;
var watermark : string;
使用例
次のサンプルコードは、セル、列、および行に透かしを追加します。
var type = new GC.Spread.Sheets.Style();
type.watermark = "User name";
sheet.setStyle(0, 1, type);
var type = new GC.Spread.Sheets.Style();
type.watermark = "Password";
sheet.setStyle(1, 1, type);
var type = new GC.Spread.Sheets.Style();
type.watermark = "The watermark.";
activeSheet.setStyle(-1, 1, type);
activeSheet.setStyle(1, -1, type);
activeSheet.setStyle(2, 2, type);
関連トピック

参照

Style クラス