Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

Workbook.Search(String, SearchOptions) Method

Performs a search in the current document by using the specified options.

You require a license to the DevExpress Office File API or DevExpress Universal Subscription to use this method in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v19.1.dll

Declaration

public IEnumerable<Cell> Search(
    string text,
    SearchOptions options
)

Parameters

Name Type Description
text String

Specifies the text to search.

options SearchOptions

Contains search options.

Returns

Type Description
IEnumerable<Cell>

A collection of cells that match the search term.

Remarks

To restrict a search to the active worksheet or a cell range, use the Worksheet.Search or Range.Search methods. Use the Range.Value property to replace values in cells that match the search term.

Refer to the Find and Replace article for more information on search functionality in the Spreadsheet control.

See Also