Table of Contents

Method ReplaceAll

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ReplaceAll(CadDocument, IReadOnlyList<CadFindResult>, string, string, CadFindOptions)

Replaces the text searched for in every result, as Replace All does: one undo step "FIND".

public static CadEditResult ReplaceAll(CadDocument document, IReadOnlyList<CadFindResult> results, string what, string with, CadFindOptions options)

Parameters

document CadDocument

The document.

results IReadOnlyList<CadFindResult>

The results.

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 results are null.