Spread Windows Forms 7.0 Product Documentation
GetSheetTabRectangle Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : GetSheetTabRectangle Method


sheetIndex
Sheet index for which to retrieve a tab rectangle

Glossary Item Box

Gets the rectangle of the tab associated with a sheet for the view.

Syntax

Visual Basic (Declaration) 
Public Function GetSheetTabRectangle( _
   ByVal sheetIndex As Integer _
) As Rectangle
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim sheetIndex As Integer
Dim value As Rectangle
 
value = instance.GetSheetTabRectangle(sheetIndex)
C# 
public Rectangle GetSheetTabRectangle( 
   int sheetIndex
)

Parameters

sheetIndex
Sheet index for which to retrieve a tab rectangle

Return Value

Rectangle of the tab associated with the sheet

Example

This example uses the GetSheetTabRectangle method.
C#Copy Code
FarPoint.Win.Spread.SpreadView sv;
Rectangle r;
fpSpread1.Sheets.Count = 3;
sv = fpSpread1.GetRootWorkbook();
r = sv.GetSheetTabRectangle(0);
MessageBox.Show(r.Size.ToString());
VB.NETCopy Code
Dim sv As FarPoint.Win.Spread.SpreadView
Dim r As Rectangle
FpSpread1.Sheets.Count = 3
sv = FpSpread1.GetRootWorkbook()
r = sv.GetSheetTabRectangle(0)
MessageBox.Show(r.Size.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

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