Method Find
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
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.
public static IReadOnlyList<CadFindResult> Find(CadDocument document, string what, CadFindOptions options, CadFindScope scope, IEnumerable<string> selected = null)
Parameters
documentCadDocumentThe document.
whatstringThe text searched for.
optionsCadFindOptionsThe options; null for the defaults.
scopeCadFindScopeWhere to look.
selectedIEnumerable<string>The objects of SelectedObjects; null for none.
Returns
- IReadOnlyList<CadFindResult>
The texts found, each object once.
Exceptions
- ArgumentNullException
Thrown when the document is null.