[]
        
(Showing Draft Content)

C1.Excel.XLSheet.Item

this Property

this[int, int]

Gets the cell at a specified position on the sheet, creating a new cell if necessary.

Declaration
public XLCell this[int rowIndex, int colIndex] { get; }
Parameters
Type Name Description
int rowIndex
int colIndex
Remarks
<p>If the specified cell doesn't exist when the indexer is invoked, the sheet will be expanded and 

a new cell will be created, then returned. This makes it easy to create and populate sheets.

If you want to determine whether a specific cell has been defined, use the GetCell(int, int) method instead.

The indexer is generally more useful when creating and populating sheets. The GetCell(int, int) method is more useful when loading existing sheets.