Excel for WPF and Silverlight
GetCell Method (XLSheet)

C1.WPF.Excel Namespace > XLSheet Class : GetCell Method
Index of the row.
Index of the column.
Gets a reference to a cell at the specified coordinates or null if the cell doesn't exist.
Syntax
'Declaration
 
Public Function GetCell( _
   ByVal rowIndex As System.Integer, _
   ByVal colIndex As System.Integer _
) As XLCell
public XLCell GetCell( 
   System.int rowIndex,
   System.int colIndex
)

Parameters

rowIndex
Index of the row.
colIndex
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 C1XLBook.Sheets indexer instead.

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

See Also

Reference

XLSheet Class
XLSheet Members