Back to Devexpress

Workbook.Search(String) Method

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

latest2.7 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

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

Parameters

NameTypeDescription
textString

Specifies the text to search.

|

Returns

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

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

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

Search(String)

See Also

Find and Replace

Workbook Class

Workbook Members

DevExpress.Spreadsheet Namespace