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
documentCadDocumentThe document.
resultCadFindResultThe result.
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 result is null.