Table of Contents

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

document CadDocument

The document.

what string

The text searched for.

options CadFindOptions

The options; null for the defaults.

scope CadFindScope

Where to look.

selected IEnumerable<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.