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


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())
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SpreadView Class
SpreadView Members

User-Task Documentation

Customizing the Sheet Name Tabs of the Component

 

 


Copyright © GrapeCity, inc. All rights reserved.