Table of Contents

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

find string

The words.

replace string

What they become; null is nothing.

matchCase bool

Whether 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

find string

The words, or a wildcard pattern where UseWildcards is set.

replace string

What they become; null is nothing.

options CadMTextFindOptions

How they are matched.

Returns

int

How many were replaced.

Exceptions

ArgumentNullException

Thrown when the options are null.