Spread Windows Forms 10.0 Product Documentation
Get Method (AlternatingRows)
Example 


Alternating row index
Gets a new alternating row for the specified alternating row.
Syntax
'Declaration
 
Public Function Get( _
   ByVal index As Integer _
) As AlternatingRow
'Usage
 
Dim instance As AlternatingRows
Dim index As Integer
Dim value As AlternatingRow
 
value = instance.Get(index)
public AlternatingRow Get( 
   int index
)

Parameters

index
Alternating row index

Return Value

AlternatingRow object containing the alternating row styles
Exceptions
ExceptionDescription
System.IndexOutOfRangeException Specified alternating row index is less than 0 or greater than or equal to the alternating row count
Example
This example changes the background color of the first alternating row.
FarPoint.Win.Spread.AlternatingRow alt;
alt = fpSpread1.ActiveSheet.AlternatingRows.Get(0);
alt.BackColor = Color.Yellow;
Dim alt As FarPoint.Win.Spread.AlternatingRow
alt = FpSpread1.ActiveSheet.AlternatingRows.Get(0)
alt.BackColor = Color.Yellow
Requirements

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

See Also

Reference

AlternatingRows Class
AlternatingRows Members

 

 


Copyright © GrapeCity, inc. All rights reserved.