Back to Devexpress

CellRange.Search(String, SearchOptions) Method

officefileapi-devexpress-dot-spreadsheet-dot-cellrange-dot-search-x28-system-dot-string-devexpress-dot-spreadsheet-dot-searchoptions-x29.md

latest2.6 KB
Original Source

CellRange.Search(String, SearchOptions) Method

Performs a search in the cell range using specified options.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

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

Parameters

NameTypeDescription
textString

A String representing the search text.

| | options | SearchOptions |

A SearchOptions instance containing required search options.

|

Returns

TypeDescription
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. 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

Find and Replace

CellRange Interface

CellRange Members

DevExpress.Spreadsheet Namespace