Table of Contents

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

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

bool

Whether a match was replaced.

Exceptions

ArgumentNullException

Thrown when the options are null.