Gets a new alternating row for the specified alternating row.
Parameters
- index
- Index of the alternating row in the collection
Property Value
AlternatingRow object containing the specified alternating row style
This example sets up three alternating rows and uses the Item property and its index to set change the background color of the rows. Note: In C#, the indexer is used instead of the Item property.
FpSpread1.Sheets[0].AlternatingRows.Count = 3;
FpSpread1.Sheets[0].AlternatingRows.Item[0].BackColor = Color.Red;
FpSpread1.Sheets[0].AlternatingRows.Item[1].BackColor = Color.Blue;
FpSpread1.Sheets[0].AlternatingRows.Item[2].BackColor = Color.Green;
FpSpread1.Sheets(0).AlternatingRows.Count = 3
FpSpread1.Sheets(0).AlternatingRows.Parent(0).BackColor = Color.Red
FpSpread1.Sheets(0).AlternatingRows.Parent(1).BackColor = Color.Blue
FpSpread1.Sheets(0).AlternatingRows.Parent(2).BackColor = Color.Green
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional