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
documentCadDocumentThe document.
resultsIReadOnlyList<CadFindResult>The results.
whatstringThe text searched for, as found.
withstringThe text put in its place.
optionsCadFindOptionsThe 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.