[]
        
(Showing Draft Content)

C1.Excel.XLSheet.GetCell

GetCell Method

GetCell(int, int)

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

Declaration
public XLCell GetCell(int rowIndex, int colIndex)
Parameters
Type Name Description
int rowIndex

Index of the row.

int colIndex

Index of the column.

Returns
Type Description
XLCell

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.