Spread WPF Documentation
GetStartIndexToBringTabIntoView Method
Example 


GrapeCity.Windows.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 System.Integer _
) As System.Integer
'Usage
 
Dim instance As SpreadView
Dim tabIndex As System.Integer
Dim value As System.Integer
 
value = instance.GetStartIndexToBringTabIntoView(tabIndex)
public System.int GetStartIndexToBringTabIntoView( 
   System.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