Click or drag to resize

Workbook FindString Method

Finds the cell with the input string.
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
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public CellRange FindString(
	string stringValue,
	bool formula,
	bool formulaValue
)

Parameters

stringValue
Type: System String
String value to search for.
formula
Type: System Boolean
Indicates whether includes formula to search for.
formulaValue
Type: System Boolean
Indicates whether includes formula value to search for.

Return Value

Type: CellRange
Found range.
See Also