Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / AlternatingRows Class / Get Method
Alternating row index
Example


In This Topic
    Get Method (AlternatingRows)
    In This Topic
    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
    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
    See Also