All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

CellRange.Search(String, SearchOptions) Method

Performs a search in the cell range using specified options.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

IEnumerable<Cell> Search(
    string text,
    SearchOptions options
)
Function Search(
    text As String,
    options As SearchOptions
) As IEnumerable(Of Cell)
IEnumerable<Cell> Search(
    string text,
    SearchOptions options
)
Function Search(
    text As String,
    options As SearchOptions
) As IEnumerable(Of Cell)
IEnumerable<Cell> Search(
    string text,
    SearchOptions options
)
Function Search(
    text As String,
    options As SearchOptions
) As IEnumerable(Of Cell)

Parameters

Name Type Description
text String

A String representing the search text.

options SearchOptions

A SearchOptions instance containing required search options.

Parameters

Name Type Description
text String

A String representing the search text.

options SearchOptions

A SearchOptions instance containing required search options.

Parameters

Name Type Description
text String

A String representing the search text.

options SearchOptions

A SearchOptions instance containing required search options.

Returns

Type Description
IEnumerable<Cell>

An object implementing the IEnumerable interface which is the collection of cells that match the search term.

Returns

Type Description
IEnumerable<Cell>

An object implementing the IEnumerable interface which is the collection of cells that match the search term.

Returns

Type Description
IEnumerable<Cell>

An object implementing the IEnumerable interface which is the collection of cells that match the search term.

Remarks

To perform a search in the active worksheet or the entire document, use the Worksheet.Search or IWorkbook.Search method. Use the CellRange.Value property to replace values in cells that match the search term.

For more information about the search functionality in the SpreadsheetControl, refer to the Find and Replace article.

See Also