Class CadFind
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
FIND, as AutoCAD's Find and Replace: the TEXT, MTEXT, attribute values, dimension text, multileader text and table
cells of a drawing that hold a text, and the text replaced in one of them or in all, each replacement one undo step.
MTEXT is searched by its words, its formatting taken out, and replaced in its words alone, every code kept in its
place: {\fArial|b1;Bolts M20} searched for M20 and replaced by M24 is {\fArial|b1;Bolts M24}.
public static class CadFind
- Inheritance
-
CadFind
- Inherited Members
Methods
- Find(CadDocument, string, CadFindOptions, CadFindScope, IEnumerable<string>)
Finds a text in the drawing, in the order of the spaces' tabs and then of each space.
- 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.
- ReplaceAll(CadDocument, IReadOnlyList<CadFindResult>, string, string, CadFindOptions)
Replaces the text searched for in every result, as Replace All does: one undo step "FIND".