Gets the rectangle of the viewport.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpSpread
Dim rowViewportIndex As Integer
Dim columnViewportIndex As Integer
Dim value As Rectangle
value = instance.GetViewportRectangle(rowViewportIndex, columnViewportIndex) |
Parameters
- rowViewportIndex
- Viewport row index
- columnViewportIndex
- Viewport column index
Return Value
Rectangleobject containing the x-, and y-coordinates, and the height, and width of the viewport rectangle
Remarks
Example
This example returns the top of the viewport rectangle.
C# | Copy Code |
---|
Rectangle r;
r = fpSpread1.GetViewportRectangle(0, 0);
Debug.WriteLine(r.Top.ToString());
|
Visual Basic | Copy Code |
---|
Dim r As Rectangle
r = FpSpread1.GetViewportRectangle(0, 0)
Debug.WriteLine(r.Top.ToString) |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also