Spread Windows Forms 7.0 Product Documentation
Item(Int32,Int32) Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > Rows Class > Item Property : Item(Int32,Int32) Property


row
Starting row index for the range
row2
Ending row index for the range

Glossary Item Box

Gets a new row 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
Starting row index for the range
row2
Ending row index for the range

Property Value

Row object for the specified range of rows

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 sets the backcolor of the first three rows.
C#Copy Code
fpSpread1.ActiveSheet.Rows[0].BackColor = Color.LightBlue;
Visual BasicCopy Code
FpSpread1.ActiveSheet.Rows.Item(0).BackColor = Color.LightBlue

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.