ArcObjects Library Reference (3DAnalyst)  

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(
  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 Snippets

Toggle Between Surface and Global Navigation Mode

.NET Samples

Navigating around the GlobeControl (Code Files: Navigation)