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


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))
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SpreadView Class
SpreadView Members

User-Task Documentation

Customizing Viewports

 

 


Copyright © GrapeCity, inc. All rights reserved.