Infragistics(R) NetAdvantage(R) WPF
Item Property
See Also  E-mail your feedback on this topic.
Infragistics.Documents.Excel Namespace > WorksheetRowCollection Class : Item Property

index
The zero-based index of the row to get.
Gets the row at the specified index.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Default Property Item( _
   ByVal index As Integer _
) As WorksheetRow
C# 
public WorksheetRow this( 
   int index
) {get;}

Parameters

index
The zero-based index of the row to get.

Property Value

The row at the specified index.

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeException is less than zero.
System.InvalidOperationException is greater than or equal to or , depending on the .

Remarks

Note: Iterating the collection will not create all rows. It will only iterate the rows which have already been used. To create and iterate all rows in the worksheet use a For loop, iterating from 0 to one less than the maximum row count, and pass in each index to the collection's indexer.

See Also