Spread for ASP.NET 11 Product Documentation
Item(Int32,Int32) Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Rows Class > Item Property : Item(Int32,Int32) Property
Beginning of range of rows specified
End of range of rows specified
Gets a Row object for the specified range of rows.
Syntax
'Declaration
 
Public Overloads ReadOnly Property Item( _
   ByVal row As Integer, _
   ByVal row2 As Integer _
) As Row
'Usage
 
Dim instance As Rows
Dim row As Integer
Dim row2 As Integer
Dim value As Row
 
value = instance.Item(row, row2)
public Row Item( 
   int row,
   int row2
) {get;}

Parameters

row
Beginning of range of rows specified
row2
End of range of rows specified

Property Value

Row object
Exceptions
ExceptionDescription
Specified row index is out of range. It must less than the row count or -1 for all.
Example
This example changes the background color of the all the rows.
FpSpread1.ActiveSheetView.Rows[0, FpSpread1.ActiveSheetView.RowCount - 1].BackColor = Color.Tan;
FpSpread1.ActiveSheetView.Rows.Item(0, FpSpread1.ActiveSheetView.RowCount - 1).BackColor = Color.Tan
See Also

Reference

Rows Class
Rows Members
Overload List