Spread Windows Forms 7.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.

Syntax

Visual Basic (Declaration) 
Public Function GetRootSheet() As SheetView
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As SheetView
 
value = instance.GetRootSheet()
C# 
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.
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

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

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