Spread WPF Documentation
GetViewportInfo Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : GetViewportInfo Method
Gets the viewport information of the current sheet.
Syntax
'Declaration
 
Public Function GetViewportInfo() As ViewportInfo
'Usage
 
Dim instance As Worksheet
Dim value As ViewportInfo
 
value = instance.GetViewportInfo()
public ViewportInfo GetViewportInfo()

Return Value

The viewport information.
Example
This example uses the GetViewportInfo method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportHeight(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportInfo().ColumnViewportCount.ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportLeftColumn(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportTopRow(0).ToString());
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetViewportWidth(0).ToString());
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportHeight(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportInfo.ColumnViewportCount.ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportLeftColumn(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportTopRow(0).ToString())
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetViewportWidth(0).ToString())
See Also

Reference

Worksheet Class
Worksheet Members