Spread ASP.NET 6.0 Product Documentation
Item(Int32,Int32) Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Rows Class > Item Property : Item(Int32,Int32) Property


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

Glossary Item Box

Gets a Row object for the specified range of rows.

Syntax

Visual Basic (Declaration) 
Public Overloads ReadOnly Property Item( _
   ByVal row As Integer, _
   ByVal row2 As Integer _
) As Row
Visual Basic (Usage)Copy Code
Dim instance As Rows
Dim row As Integer
Dim row2 As Integer
Dim value As Row
 
value = instance.Item(row, row2)
C# 
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
System.IndexOutOfRangeException 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.
C#Copy Code
FpSpread1.ActiveSheetView.Rows[0, FpSpread1.ActiveSheetView.RowCount - 1].BackColor = Color.Tan;
Visual BasicCopy Code
FpSpread1.ActiveSheetView.Rows.Item(0, FpSpread1.ActiveSheetView.RowCount - 1).BackColor = Color.Tan

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.