Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / AlternatingRows Class / Item Property
Index of the alternating row (zero based)

In This Topic
    Item Property (AlternatingRows)
    In This Topic
    Gets a new alternating row for the specified alternating row.
    Public ReadOnly Default Property Item( _
       ByVal index As Integer _
    ) As AlternatingRow
    Dim instance As AlternatingRows
    Dim index As Integer
    Dim value As AlternatingRow
    value = instance.Item(index)
    public AlternatingRow this[ 
       int index
    ]; {get;}


    Index of the alternating row (zero based)

    Property Value

    AlternatingRow object
    Specified alternating row index is less than 0 or greater than or equal to the alternating row count
    To create alternating rows, first set the AlternatingRows.Count property to specify the number of alternating row patterns, then set the properties for each pattern.
    This example changes the background color of the specified alternating row.
    ColorDialog cd = new ColorDialog();
    if (cd.ShowDialog() == DialogResult.OK)
    fpSpread1.ActiveSheet.AlternatingRows[0].BackColor = cd.Color;
    Dim cd As New ColorDialog()
    If cd.ShowDialog = DialogResult.OK Then
    fpSpread1.ActiveSheet.AlternatingRows.Item(0).BackColor = cd.Color
    End If
    See Also