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


ICamera.ViewingDistance Property (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.ViewingDistance Property
ArcGIS Developer Help

ICamera.ViewingDistance Property

The viewing distance between the observer and the target. When changing, the observer moves.

[Visual Basic .NET]
Public Property ViewingDistance As Double
[C#]
public double ViewingDistance {get; set;}
[C++]
HRESULT get_ViewingDistance(
  System.Double* distance
);
[C++]
HRESULT put_ViewingDistance(
  double distance
);
[C++]
Parameters
distance [out, retval]

distance is a parameter of type double* distance [in]
distance is a parameter of type double

Product Availability

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

Remarks

The ViewingDistance is in the current scene units as defined by the horizontal coordinate system of the scene's spatial reference.

Setting the ViewingDistance will modify the observer's position along the line of sight relative to the target.

See Also

ICamera Interface

.NET Samples

Navigating around the GlobeControl