示例#1
0
 /// <summary>
 /// Replace the <paramref name="searchText"/> with the <paramref name="replaceText"/> adding the style given in <paramref name="style"/>
 /// </summary>
 /// <param name="searchText"></param>
 /// <param name="replaceText"></param>
 /// <param name="matchCase"></param>
 /// <param name="style"></param>
 /// <returns></returns>
 public int ReplaceTextWithBasicStyle(string searchText, string replaceText, bool matchCase, BasicStyle style)
 {
     return(ReplaceTextWithStyle(searchText, replaceText, matchCase, style.GetProperties()));
 }
示例#2
0
 /// <summary>
 /// Add text with te given basic style
 /// </summary>
 /// <param name="text"></param>
 /// <param name="style"></param>
 /// <returns></returns>
 public int AddTextWithBasicStyle(string text, BasicStyle style)
 {
     return(AddText(text, style.GetProperties()));
 }