Spread Silverlight Documentation
GetViewportWidth Method
Example 


The index of the column viewport.
Gets the width of the viewport.
Syntax
'Declaration
 
Public Function GetViewportWidth( _
   ByVal columnViewportIndex As System.Integer _
) As System.Double
'Usage
 
Dim instance As Worksheet
Dim columnViewportIndex As System.Integer
Dim value As System.Double
 
value = instance.GetViewportWidth(columnViewportIndex)
public System.double GetViewportWidth( 
   System.int columnViewportIndex
)

Parameters

columnViewportIndex
The index of the column viewport.

Return Value

The width of the viewport.
Example
This example uses the GetViewportWidth 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, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

Worksheet Class
Worksheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.