Spread Windows Forms 12.0 Product Documentation
GetSheetTabRectangle Method (SpreadView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : GetSheetTabRectangle Method
Sheet index for which to retrieve a tab rectangle
Gets the rectangle of the tab associated with a sheet for the view.
Syntax
'Declaration
 
Public Function GetSheetTabRectangle( _
   ByVal sheetIndex As Integer _
) As Rectangle
'Usage
 
Dim instance As SpreadView
Dim sheetIndex As Integer
Dim value As Rectangle
 
value = instance.GetSheetTabRectangle(sheetIndex)
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.
FarPoint.Win.Spread.SpreadView sv;
Rectangle r;
fpSpread1.Sheets.Count = 3;
sv = fpSpread1.GetRootWorkbook();
r = sv.GetSheetTabRectangle(0);
MessageBox.Show(r.Size.ToString());
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())
See Also

Reference

SpreadView Class
SpreadView Members

User-Task Documentation

Customizing the Sheet Name Tabs of the Component