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

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

Syntax

C#
public XLCell this[
	int rowIndex,
	int colIndex
] { get; }
Visual Basic
Public ReadOnly Default Property Item ( _
	rowIndex As Integer, _
	colIndex As Integer _
) As XLCell
	Get

Parameters

rowIndex
Type: System..::..Int32
colIndex
Type: System..::..Int32

Remarks

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(Int32, Int32) method instead.

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

See Also