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


ISceneHookHelper.ActiveViewer Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISceneHookHelper Interface > ISceneHookHelper.ActiveViewer Property
ArcGIS Developer Help

ISceneHookHelper.ActiveViewer Property

Active scene viewer of hooked control or application.

[Visual Basic .NET]
Public ReadOnly Property ActiveViewer As ISceneViewer
[C#]
public ISceneViewer ActiveViewer {get;}
[C++]
HRESULT get_ActiveViewer(
  ISceneViewer** ppSceneViewer
);
[C++]
Parameters
ppSceneViewer [out, retval]

ppSceneViewer is a parameter of type ISceneViewer**

Product Availability

Available with ArcGIS Engine.

Description

The ISceneViewer object of the hook passed to the ICommand::OnCreate event. The ActiveViewer is returned regardless of whether the hook is a SceneControl, ToolbarControl (with a 'buddy' SceneControl) or ArcScene.

Errors Returned

1060 800A0424: The supplied hook is not valid. 

See Also

ISceneHookHelper Interface

.NET Samples

Custom scene navigation commands Custom scene navigation commands Custom scene navigation commands Custom scene navigation commands