Spread ASP.NET 6.0 Product Documentation
Parent Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > AlternatingRows Class : Parent Property


Glossary Item Box

Gets the parent object containing this collection of alternating rows.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Parent As Object
Visual Basic (Usage)Copy Code
Dim instance As AlternatingRows
Dim value As Object
 
value = instance.Parent
C# 
public object Parent {get;}

Property Value

Object containing the parent Rows object containing this AlternatingRows collection

Example

This example creates three alternating rows and uses the Parent property to set the background color of the rows.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.