Click or drag to resize

XlsWorksheet CheckExistence Method

Indicates whether cell has been initialized.
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.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public bool CheckExistence(
	int row,
	int column
)

Parameters

row
Type: System Int32
Row index.
column
Type: System Int32
Column index.

Return Value

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

Implements

IWorksheet CheckExistence(Int32, Int32)
See Also