Gets a reference to a cell at the specified coordinates or null if the cell doesn't exist.

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public XLCell GetCell(
	int rowIndex,
	int colIndex
)
Visual Basic
Public Function GetCell ( _
	rowIndex As Integer, _
	colIndex As Integer _
) As XLCell

Parameters

rowIndex
Type: System..::..Int32
Index of the row.
colIndex
Type: System..::..Int32
Index of the column.

Return Value

A reference to the XLCell object at the specified coordinates, or null if there is no cell at the specified position.

Remarks

To populate new sheets, use the Sheets indexer instead.

The indexer will automatically create new rows, columns, and cells as needed, and will never return null.

See Also