Spread Windows Forms 11.0 Product Documentation
GetViewportRectangle Method (SpreadView)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : GetViewportRectangle Method
Viewport row index
Gets the rectangle of the viewport.
Syntax
'Declaration
 
Public Function GetViewportRectangle( _
   ByVal rowViewportIndex As Integer, _
   ByVal columnViewportIndex As Integer _
) As Rectangle
'Usage
 
Dim instance As SpreadView
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
Dim value As Rectangle
 
value = instance.GetViewportRectangle(rowViewportIndex, columnViewportIndex)
public Rectangle GetViewportRectangle( 
   int rowViewportIndex,
   int columnViewportIndex
)

Parameters

rowViewportIndex
Viewport row index
columnViewportIndex

Return Value

Rectangle object containing the rectangle of the specified viewport
Example
This example uses the GetViewportRectangle method.
FarPoint.Win.Spread.SpreadView sv;
sv = fpSpread1.GetRootWorkbook();
listBox1.Items.Add(sv.GetViewportRectangle(0,0));
Dim sv As FarPoint.Win.Spread.SpreadView
sv = fpSpread1.GetRootWorkbook()
ListBox1.Items.Add(sv.GetViewportRectangle(0, 0))
See Also

Reference

SpreadView Class
SpreadView Members

User-Task Documentation

Customizing Viewports