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


ITOCBuddy.GetActiveView Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCBuddy Interface > ITOCBuddy.GetActiveView Method
ArcGIS Developer Help

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(
void
);

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