Spread WPF Documentation
GetViewportHeight Method
Example 


The index of the row viewport.
Gets the height of the viewport.
Syntax
'Declaration
 
Public Function GetViewportHeight( _
   ByVal rowViewportIndex As System.Integer _
) As System.Double
'Usage
 
Dim instance As Worksheet
Dim rowViewportIndex As System.Integer
Dim value As System.Double
 
value = instance.GetViewportHeight(rowViewportIndex)
public System.double GetViewportHeight( 
   System.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())
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.