Spread Windows Forms 12.0 Product Documentation
Parent Property (SpreadView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : Parent Property
Gets the parent (SpreadView object) of the view.
Syntax
'Declaration
 
Public ReadOnly Property Parent As SpreadView
'Usage
 
Dim instance As SpreadView
Dim value As SpreadView
 
value = instance.Parent
public SpreadView Parent {get;}

Property Value

SpreadView object containing the parent view
Example
This example sets the Parent property.
FarPoint.Win.Spread.SpreadView sv;
ArrayList cwb;

if (fpSpread1.ActiveSheet.DataSource == null) 
{
    MessageBox.Show("You must first click the Bind database menu item.");
    return;
}
cwb =fpSpread1.GetRootWorkbook().GetChildWorkbooks(); 
sv = (FarPoint.Win.Spread.SpreadView) cwb[0];
listBox1.Items.Add(sv.Parent.ToString());
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)
ListBox1.Items.Add(sv.Parent.ToString)
See Also

Reference

SpreadView Class
SpreadView Members