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

CellRange.Search(String) Method

Performs a search in the cell range using the default parameters.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

IEnumerable<Cell> Search(
    string text
)

#Parameters

Name Type Description
text String

A String representing the search text.

#Returns

Type Description
IEnumerable<Cell>

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

#Remarks

Use the Search method to perform a search in the specified cell range 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 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