Spread Windows Forms 6.0 Product Documentation
Parent Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.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

Remarks

The parent object is one of the following: a ColumnHeader object, a RowHeader object, or a SheetView object.

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 property is available at run time only.

Example

This example returns the background color of the specified AlternatingRows parent.
C#Copy Code
Object sv;

sv = fpSpread1.ActiveSheet.AlternatingRows[0].Parent[0].BackColor;

textBox1.Text = sv.ToString();
Visual BasicCopy Code
Dim sv As Object

sv = FpSpread1.ActiveSheet.AlternatingRows(0).Parent(0).BackColor

TextBox1.Text = sv.ToString()

Requirements

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

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.