Spread Windows Forms 6.0 Product Documentation
GetRootSheet Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetRootSheet Method

Glossary Item Box

Gets the top SheetView object.


Visual Basic (Declaration) 
Public Function GetRootSheet() As SheetView
Visual Basic (Usage)Copy Code
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


This example illustrates the method by returning the top sheet in the view.
C#Copy Code
FarPoint.Win.Spread.SheetView sv;
sv = fpSpread1.ActiveSheet.GetRootSheet();
label1.Text = "The top sheet is - " + sv.SheetName;
Visual BasicCopy Code
Dim sv As FarPoint.Win.Spread.SheetView
sv = FpSpread1.ActiveSheet.GetRootSheet()
Label1.Text = "The top sheet is - " & sv.SheetName


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.