Spread Windows Forms 6.0 Product Documentation
Get Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > AlternatingRows Class : Get Method


index
Alternating row index

Glossary Item Box

Gets a new alternating row for the specified alternating row.

Syntax

Visual Basic (Declaration) 
Public Function Get( _
   ByVal index As Integer _
) As AlternatingRow
Visual Basic (Usage)Copy Code
Dim instance As AlternatingRows
Dim index As Integer
Dim value As AlternatingRow
 
value = instance.Get(index)
C# 
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.
C#Copy Code
FarPoint.Win.Spread.AlternatingRow alt;
alt = fpSpread1.ActiveSheet.AlternatingRows.Get(0);
alt.BackColor = Color.Yellow;
Visual BasicCopy Code
Dim alt As FarPoint.Win.Spread.AlternatingRow
alt = FpSpread1.ActiveSheet.AlternatingRows.Get(0)
alt.BackColor = Color.Yellow

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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