Spread WPF Documentation
GetActiveColumnViewportIndex Method (Worksheet)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : GetActiveColumnViewportIndex Method
Gets the index of the active column viewport.
Syntax
'Declaration
 
Public Function GetActiveColumnViewportIndex() As System.Integer
'Usage
 
Dim instance As Worksheet
Dim value As System.Integer
 
value = instance.GetActiveColumnViewportIndex()
public System.int GetActiveColumnViewportIndex()

Return Value

The index of the active column viewport.
Example
This example uses the GetActiveColumnViewportIndex method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActiveColumnViewportIndex().ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActiveRowViewportIndex().ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetActualColumnVisible(5,GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActiveColumnViewportIndex().ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActiveRowViewportIndex().ToString())
listBox1.Items.Add(gcSpreadSheet1.Sheets(0).GetActualColumnVisible(5,GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells).ToString())
See Also

Reference

Worksheet Class
Worksheet Members