Method ReplaceAll
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ReplaceAll(string, string, bool)
Replaces every match of words with others, each in the look of the letter it starts at, as one change; Find and Replace's Replace All.
public int ReplaceAll(string find, string replace, bool matchCase)
Parameters
findstringThe words.
replacestringWhat they become; null is nothing.
matchCaseboolWhether capitals must match.
Returns
- int
How many were replaced.
ReplaceAll(string, string, CadMTextFindOptions)
Replaces every match of words with others, each in the look of the letter it starts at, as one undo step: Find and Replace's Replace All. The text put in is not searched again, so that replacing "a" with "aa" ends.
public int ReplaceAll(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
- int
How many were replaced.
Exceptions
- ArgumentNullException
Thrown when the options are null.