Spread.Sheets Documentation
TextDecorationType Enumeration
GC.Spread.Sheets Namespace : TextDecorationType Enumeration
Defines the type of the text decoration.
Members
MemberDescription
doubleUnderlineSpecifies to display double line below the text.
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(GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getRange(1, -1, 1, -1).textDecoration(GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getRange(-1, 1, -1, 1).textDecoration(GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.lineThrough | GC.Spread.Sheets.TextDecorationType.underline);
 
var style = new GC.Spread.Sheets.Style();
style.textDecoration = GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.underline;
activeSheet.setStyle(1, 1, style, GC.Spread.Sheets.SheetArea.viewport);
activeSheet.getCell(0, 0).value("Test");
activeSheet.getCell(1, 0).value("Test");
activeSheet.getCell(0, 1).value("Test");
Inheritance Hierarchy

Object
   GC.Spread.Sheets.TextDecorationType

See Also

Reference

GC.Spread.Sheets Namespace
Setting Text Decoration