Skip to main content
A newer version of this page is available.
All docs
V18.2
Row

Range.Search(String, SearchOptions) Method

Performs a search in the cell range using specified options.

Namespace: DevExpress.Spreadsheet

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

Declaration

IEnumerable<Cell> Search(
    string text,
    SearchOptions 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.

Remarks

To perform a search in the active worksheet or the entire document, use the Worksheet.Search or IWorkbook.Search method. For more information about the search functionality in the SpreadsheetControl, refer to the Find and Replace article.

See Also