GcSpread.Sheets Namespace > Style class : watermark Field |
var instance = new GcSpread.Sheets.Style(backColor, foreColor, hAlign, vAlign, font, themeFont, formatter, borderLeft, borderTop, borderRight, borderBottom, locked, textIndent, wordWrap, shrinkToFit, backgroundImage, cellType, backgroundImageLayout, tabStop, textDecoration, imeMode, name, parentName, watermark); var value; // Type: string value = instance.watermark;
var watermark : string;
var type = new GcSpread.Sheets.Style(); type.watermark = "User name"; sheet.setStyle(0, 1, type); var type = new GcSpread.Sheets.Style(); type.watermark = "Password"; sheet.setStyle(1, 1, type);
var type = new GcSpread.Sheets.Style(); type.watermark = "The watermark."; activeSheet.setStyle(-1, 1, type); activeSheet.setStyle(1, -1, type); activeSheet.setStyle(2, 2, type);