Click or drag to resize

IWorksheet CheckExistence Method

Indicates whether a cell was initialized or accessed by the user.
Examples
The following code illustrates if the cells was initialized or accessed by the user:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Set text</para><para>worksheet.Range["A1"].Text = "Hello";</para><para>//Check the cell.Output will be true.</para><para>Console.Write(worksheet.CheckExistence(1, 1));</para><para>//Save to file</para><para>workbook.SaveToFile("CheckExistence.xlsx");</para>

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
bool CheckExistence(
	int iRow,
	int iColumn
)

Parameters

iRow
Type: System Int32
One-based row index of the cell.
iColumn
Type: System Int32
One-based column index of the cell.

Return Value

Type: Boolean
Value indicating whether the cell was initialized or accessed by the user.
See Also