This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCBuddy Interface > ITOCBuddy.GetActiveView Method (ArcObjects .NET 10.5 SDK) |
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
The GetActiveView method returns the IActiveView interface of the ITOCControl::Buddy. This will either be a Map, PageLayout, Scene or Globe.