This document is archived and information here might be outdated.  Recommended version.


ICamera.GetViewport Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (3DAnalyst)  

ICamera.GetViewport Method

Returns the viewport screen coordinates.

[Visual Basic .NET]
Public Sub GetViewport ( _
    ByRef x As Integer, _
    ByRef y As Integer, _
    ByRef Width As Integer, _
    ByRef height As Integer _
)
[C#]
public void GetViewport (
    ref int x,
    ref int y,
    ref int Width,
    ref int height
);
[C++]
HRESULT GetViewport(
  System.Int32* x,
  System.Int32* y,
  System.Int32* Width,
  System.Int32* height
);
[C++]

Parameters x [in]
x is a parameter of type long* y [in]
y is a parameter of type long* Width [in]
Width is a parameter of type long* height [in]
height is a parameter of type long*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

See Also

ICamera Interface

.NET Snippets

Toggle Between Surface and Global Navigation Mode