This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IC > ICamera Interface > ICamera.ViewingDistance Property (ArcObjects .NET 10.5 SDK) |
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
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.