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

 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;
  }

  

  

posted on 2015-05-21 23:56  janehlp  阅读(2168)  评论(0编辑  收藏  举报