Visual Basic (Declaration) | |
---|---|
Public ReadOnly Default Property Item( _ 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.Item(index) |
C# | |
---|---|
public AlternatingRow this[ int index ]; {get;} |
Parameters
- index
- Index of the alternating row (zero based)
Property Value
AlternatingRow objectException | Description |
---|---|
System.IndexOutOfRangeException | 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.
C# | Copy Code |
---|---|
ColorDialog cd = new ColorDialog(); if (cd.ShowDialog() == DialogResult.OK) { fpSpread1.ActiveSheet.AlternatingRows[0].BackColor = cd.Color; } |
Visual Basic | Copy Code |
---|---|
Dim cd As New ColorDialog() If cd.ShowDialog = DialogResult.OK Then FpSpread1.ActiveSheet.AlternatingRows.Item(0).BackColor = cd.Color End If |
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
Reference
AlternatingRows ClassAlternatingRows Members