This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCControlDefault Interface > ITOCControlDefault.SetActiveView Method (ArcObjects .NET 10.4 SDK) |
Sets the ActiveView used to populate the TOCControl.
[Visual Basic .NET] Public Sub SetActiveView ( _ ByVal ActiveView As IActiveView _ )
[C#] public void SetActiveView ( IActiveView ActiveView );
[C++]
HRESULT SetActiveView(
IActiveView* ActiveView
);
[C++]
Parameters ActiveView [in]
ActiveView is a parameter of type IActiveView
Use the method to set the ActiveView used by the TOCControl to populate itself with maps, layers and symbols. The ActiveView can be set to IMapControl2::ActiveView, IPageLayoutControl::ActiveView, ISceneControl::Scene or IGlobeControl::Globe. The SetActiveView method causes the Buddy to be set to Nothing.
If a Buddy has been set the TOCControl will populate itself based on the ActiveView of the Buddy.