Spread Windows Forms 11.0 Product Documentation
GetRootSheet Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetRootSheet Method
Gets the top SheetView object.
Syntax
'Declaration
 
Public Function GetRootSheet() As SheetView
'Usage
 
Dim instance As SheetView
Dim value As SheetView
 
value = instance.GetRootSheet()
public SheetView GetRootSheet()

Return Value

SheetView object containing the top sheet in a hierarchy of sheets
Example
This example illustrates the method by returning the top sheet in the view.
FarPoint.Win.Spread.SheetView sv;
sv = fpSpread1.ActiveSheet.GetRootSheet();
label1.Text = "The top sheet is - " + sv.SheetName;
Dim sv As FarPoint.Win.Spread.SheetView
sv = FpSpread1.ActiveSheet.GetRootSheet()
Label1.Text = "The top sheet is - " & sv.SheetName
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Managing Data Binding
Working with Multiple Sheets