Click or drag to resize

IWorkbook FindOne Method (String, FindType)

This method seraches for the first cell with specified string value.
Examples
This sample shows how to find the first cell with specified string value:
<para>//Create workbook</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>//Find cell with specified string value</para><para>string value = "value";</para><para>IXLSRange result = workbook.FindString(value, false, false);</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
IXLSRange FindOne(
	string findValue,
	FindType flags
)

Parameters

findValue
Type: System String
Value to search.
flags
Type: Spire.Xls FindType
Type of value to search.

Return Value

Type: IXLSRange
First found cell, or Null if value was not found.
See Also