Spread Windows Forms 7.0 Product Documentation
Parent Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : Parent Property

Glossary Item Box

Gets the parent (SpreadView object) of the view.


Visual Basic (Declaration) 
Public ReadOnly Property Parent As SpreadView
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim value As SpreadView
value = instance.Parent
public SpreadView Parent {get;}

Property Value

SpreadView object containing the parent view


This example sets the Parent property.
C#Copy Code
FarPoint.Win.Spread.SpreadView sv;
ArrayList cwb;

if (fpSpread1.ActiveSheet.DataSource == null) 
    MessageBox.Show("You must first click the Bind database menu item.");
cwb =fpSpread1.GetRootWorkbook().GetChildWorkbooks(); 
sv = (FarPoint.Win.Spread.SpreadView) cwb[0];
VB.NETCopy Code
Dim sv As FarPoint.Win.Spread.SpreadView
Dim cwb As ArrayList

If FpSpread1.ActiveSheet.DataSource Is Nothing Then
    MessageBox.Show("You must first click the Bind database menu item.")
    Exit Sub
End If
cwb = FpSpread1.GetRootWorkbook.GetChildWorkbooks
sv = CType(cwb(0), FarPoint.Win.Spread.SpreadView)


Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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