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


ICamera.SetViewport Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IC > ICamera Interface > ICamera.SetViewport Method
ArcGIS Developer Help

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