Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Workbook.Search(String) Method

Performs a search in the current document by using the default parameters.

You need a 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.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public IEnumerable<Cell> Search(
    string text
)

#Parameters

Name Type Description
text String

Specifies the text to search.

#Returns

Type Description
IEnumerable<Cell>

A collection of cells that match the search term.

#Remarks

Use the Search method to perform a search in the current document with the default parameters listed in the table below.

Option Default Value
Look In Values and Formulas
Search Direction By Rows
Match Case False
Match Entire Cell Contents False

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.

#Implements

See Also