SpreadJS Documentation
textDecoration Method
The type of the decoration.
Gets or sets the type of the decoration added to the cell's text.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: TextDecorationType
returnValue = instance.textDecoration(value);
function textDecoration( 
   value : TextDecorationType
) : TextDecorationType;

Parameters

value
The type of the decoration.

Return Value

The type of the decoration.
Example
This example uses the textDecoration method.
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

Cell type
Setting Text Decoration

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.