SpreadJS Documentation
textDecoration Field
Indicates the decoration added to text.
Syntax
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: TextDecorationType
value = instance.textDecoration;
var textDecoration : TextDecorationType;
Example
This example uses the textDecoration property.
activeSheet.getCell(0, 0).textDecoration(GcSpread.Sheets.TextDecorationType.Underline);
activeSheet.getRow(1).textDecoration(GcSpread.Sheets.TextDecorationType.Overline | GcSpread.Sheets.TextDecorationType.Underline);
activeSheet.getColumn(1).textDecoration(GcSpread.Sheets.TextDecorationType.Overline | GcSpread.Sheets.TextDecorationType.LineThrough | GcSpread.Sheets.TextDecorationType.Underline);
 
var style = new GcSpread.Sheets.Style();
style.textDecoration = GcSpread.Sheets.TextDecorationType.Overline | GcSpread.Sheets.TextDecorationType.Underline;
activeSheet.setStyle(1, 1, style, GcSpread.Sheets.SheetArea.viewport);
activeSheet.getCell(0, 0).value("Test");
activeSheet.getCell(1, 0).value("Test");
activeSheet.getCell(0, 1).value("Test");
See Also

Reference

Style class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.