Back to Devexpress

IWorkbook.Search(String) Method

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

latest2.4 KB
Original Source

IWorkbook.Search(String) Method

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

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

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

Parameters

NameTypeDescription
textString

A String representing the search text.

|

Returns

TypeDescription
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 current document with the default parameters listed in the table below.

OptionDefault Value
Look InValues and Formulas
Search DirectionBy Rows
Match CaseFalse
Match Entire Cell ContentsFalse

To restrict a search to the active worksheet or even a cell range, use the Worksheet.Search or CellRange.Search methods. For more information about the search functionality in the SpreadsheetControl, refer to the Find and Replace article.

See Also

Find and Replace

IWorkbook Interface

IWorkbook Members

DevExpress.Spreadsheet Namespace