Table of Contents

Method Replace

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Replace(CadDocument, CadFindResult, string, string, CadFindOptions)

Replaces the text searched for in one result, every time it is in it, as Replace does: one undo step "FIND". An object whose owner keeps it (CadEditRule) is refused as any edit of it is.

public static CadEditResult Replace(CadDocument document, CadFindResult result, string what, string with, CadFindOptions options)

Parameters

document CadDocument

The document.

result CadFindResult

The result.

what string

The text searched for, as found.

with string

The text put in its place.

options CadFindOptions

The options it was found with; null for the defaults.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document or the result is null.