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


ITOCBuddy.GetActiveView Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

ITOCBuddy.GetActiveView Method

Returns the underlying object implementing basic map and ActiveView. This is used to populate the TOC.

[Visual Basic .NET]
Public Function GetActiveView ( _
) As IActiveView
[C#]
public IActiveView GetActiveView (
);
[C++]
HRESULT GetActiveView(
  IActiveView** ppActiveView
);
[C++]

Parameters ppActiveView [out, retval]
ppActiveView is a parameter of type IActiveView

Product Availability

Available with ArcGIS Engine.

Description

The GetActiveView method returns the IActiveView interface of the ITOCControl::Buddy. This will either be a Map, PageLayout, Scene or Globe.

See Also

ITOCBuddy Interface