GrapeCity.Xaml.SpreadSheet.UI
GetStartIndexToBringTabIntoView Method
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > SpreadView Class : GetStartIndexToBringTabIntoView Method
Index of the tab.
Calculates the start index to bring the tab into view.
Syntax
'Declaration
 
Public Function GetStartIndexToBringTabIntoView( _
   ByVal tabIndex As Integer _
) As Integer
'Usage
 
Dim instance As SpreadView
Dim tabIndex As Integer
Dim value As Integer
 
value = instance.GetStartIndexToBringTabIntoView(tabIndex)
public int GetStartIndexToBringTabIntoView( 
   int tabIndex
)

Parameters

tabIndex
Index of the tab.
Remarks
This method gets the index of the tab that needs to be set as the left-most tab to make sure that the specified sheet index's tab is visible.
Example
This example uses the GetStartIndexToBringTabIntoView method.
GcSpreadSheet1.SheetCount = 5;
TextBox1.Text = GcSpreadSheet1.View.GetStartIndexToBringTabIntoView(2).ToString();
GcSpreadSheet1.SheetCount = 5
TextBox1.Text = GcSpreadSheet1.View.GetStartIndexToBringTabIntoView(2).ToString()
See Also

Reference

SpreadView Class
SpreadView Members