'Declaration Public ReadOnly Default Property Item( _ ByVal index As System.Integer _ ) As WorksheetCell
public WorksheetCell this[ System.int index ]; {get;}
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | index is less than zero. |
System.InvalidOperationException | |
System.InvalidOperationException | If the row was removed from the worksheet. |
Note: Iterating the collection will not create all cells. It will only iterate the cells which have already been used. To create and iterate all cells in the worksheet use a For loop, iterating from 0 to one less than the maximum column count, and pass in each index to the collection's indexer.
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
View on GitHub