使用style 的 textDecorationhttp://sphelp.grapecity.com/webh ... textDecoration.html
- var style = new GcSpread.Sheets.Style();
- style.textDecoration = GcSpread.Sheets.TextDecorationType.LineThrough;
- sheet.setStyle(0, 0, style, GcSpread.Sheets.SheetArea.viewport);
- sheet.setStyle(1, -1, style, GcSpread.Sheets.SheetArea.viewport);
- sheet.getCell(2, 2).textDecoration(GcSpread.Sheets.TextDecorationType.Underline);
复制代码 |