FindReplaceOptions.FindWholeWordsOnly
FindReplaceOptions FindWholeWordsOnly property. True indicates the oldValue must be a standalone word.
FindReplaceOptions.FindWholeWordsOnly property
True indicates the oldValue must be a standalone word.
public bool FindWholeWordsOnly { get; set; }
Examples
Shows how to replace text in the document using customized find/replace options.
FindReplaceOptions options = new FindReplaceOptions();
options.MatchCase = true;
options.FindWholeWordsOnly = true;
int replacements = Replacer.Replace(MyDir + "Replacing.docx",
ArtifactsDir + "Replacer.Replace1.docx",
SaveFormat.Docx,
"findme",
"Replacement Text",
options);
See Also
- class FindReplaceOptions
- namespace Wordize.Replacing
- assembly Wordize