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


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

ICamera.SetViewport Method

Sets the viewport screen coordinates.

[Visual Basic .NET]
Public Sub SetViewport ( _
    ByVal x As Integer, _
    ByVal y As Integer, _
    ByVal Width As Integer, _
    ByVal height As Integer _
)
[C#]
public void SetViewport (
    int x,
    int y,
    int Width,
    int height
);
[C++]
HRESULT SetViewport(
  long x,
  long y,
  long Width,
  long 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