SpreadJS Documentation
TextDecorationType Enumeration
Defines the type of the text decoration.
Members
MemberDescription
LineThroughSpecifies to display a line through the text.
NoneSpecifies normal text.
OverlineSpecifies to display a line above the text.
UnderlineSpecifies to display a line below the text.
Example
This example uses the textDecorationType enumeration.
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");
Inheritance Hierarchy

Object
   GcSpread.Sheets.TextDecorationType

See Also

Reference

GcSpread.Sheets Namespace
Setting Text Decoration

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.