找回密码
 立即注册

QQ登录

只需一步,快速开始

飞翔的面包

初级会员

20

主题

42

帖子

314

积分

初级会员

积分
314

微信认证勋章

飞翔的面包
初级会员   /  发表于:2016-7-12 10:31  /   查看:3176  /  回复:3
如题


SpreadJS设置单元格内容删除线,或者整行设置删除线

blob977703247.png
blob299102477.png

3 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-7-12 10:58:02
推荐
使用style 的 textDecorationhttp://sphelp.grapecity.com/webh ... textDecoration.html
  1. var style = new GcSpread.Sheets.Style();
  2. style.textDecoration = GcSpread.Sheets.TextDecorationType.LineThrough;
  3. sheet.setStyle(0, 0, style, GcSpread.Sheets.SheetArea.viewport);
  4. sheet.setStyle(1, -1, style, GcSpread.Sheets.SheetArea.viewport);

  5. sheet.getCell(2, 2).textDecoration(GcSpread.Sheets.TextDecorationType.Underline);
复制代码
回复 使用道具 举报
飞翔的面包
初级会员   /  发表于:2016-7-12 11:04:24
板凳
已解决。sheet.getRow(r).textDecoration(GcSpread.Sheets.TextDecorationType.LineThrough)
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-7-12 11:05:04
地板
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部