码迷,mamicode.com
首页 > Web开发 > 详细

aspose.word 查找文本并加下划线

时间:2015-05-22 01:51:22      阅读:430      评论:0      收藏:0      [点我收藏+]

标签:

 private Run SplitRun(Run run, int position)
 {
            Run beforeRun = (Run)run.Clone(true);
            beforeRun.Text = run.Text.Substring(0, position);
            beforeRun.Font.Underline = Underline.Single;
            run.Text = run.Text.Substring(position);
            run.ParentNode.InsertBefore(beforeRun, run);

            return run;
  }

  

  

aspose.word 查找文本并加下划线

标签:

原文地址:http://www.cnblogs.com/janehlp/p/4521212.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!