GrapeCity.Xaml.SpreadSheet.Data
GetViewportHeight Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class : GetViewportHeight Method
The index of the row viewport.
Gets the height of the viewport.
Syntax
'Declaration
 
Public Function GetViewportHeight( _
   ByVal rowViewportIndex As Integer _
) As Double
'Usage
 
Dim instance As Worksheet
Dim rowViewportIndex As Integer
Dim value As Double
 
value = instance.GetViewportHeight(rowViewportIndex)
public double GetViewportHeight( 
   int rowViewportIndex
)

Parameters

rowViewportIndex
The index of the row viewport.

Return Value

The height of the viewport.
Example
This example uses the GetViewportHeight 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