Method Replace
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Replace(string, string, CadMTextFindOptions)
Find and Replace's Replace: where the selection is a match of the words it is replaced, in the look of its first letter and as one undo step, and the next match is selected; else the next match is selected, as Find Next does, and nothing is replaced.
public bool Replace(string find, string replace, CadMTextFindOptions options)
Parameters
findstringThe words, or a wildcard pattern where UseWildcards is set.
replacestringWhat they become; null is nothing.
optionsCadMTextFindOptionsHow they are matched.
Returns
- bool
Whether a match was replaced.
Exceptions
- ArgumentNullException
Thrown when the options are null.