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

Workbook.Search(String, SearchOptions) Method

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

You need an active license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this method in production code.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v20.2.dll


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


Name Type Description
text String

Specifies the text to search.

options SearchOptions

Contains search options.


Type Description

A collection of cells that match the search term.


To restrict a search to the active worksheet or a cell range, use the Worksheet.Search or CellRange.Search methods. Use the CellRange.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