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


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)
Requirements

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

Reference

SpreadView Class
SpreadView Members

 

 


Copyright © GrapeCity, inc. All rights reserved.