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

时间:2015-05-22 01:50:08   收藏:0   阅读:422
 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;
  }

  

  

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!