.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SubDocument.FindAll(String, SearchOptions) Method

Finds all text ranges that match the specified string in the current document.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v21.1.Core.dll

Declaration

DocumentRange[] FindAll(
    string textToFind,
    SearchOptions options
)

Parameters

Name Type Description
textToFind String

A string, specifying the search text.

options SearchOptions

A SearchOptions enumeration specifying search options.

Returns

Type Description
DocumentRange[]

An array of DocumentRange objects representing matching text ranges.

Remarks

The code sample below shows how to find a word “letter”:

DocumentRange[] found = wordProcessor.Document.FindAll("letter", SearchOptions.WholeWord);
See Also