This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.SetActiveView Method (ArcObjects .NET 10.5 SDK) |
Set the ActiveView content of the map document.
[Visual Basic .NET] Public Sub SetActiveView ( _ ByVal pActiveView As IActiveView _ )
[C#] public void SetActiveView ( IActiveView pActiveView );
[C++]
HRESULT SetActiveView(
IActiveView* pActiveView
);
[C++]
Parameters pActiveView [in]
pActiveView is a parameter of type IActiveView
Use this method to set the ActiveView of the MapDocument. Use the PageLayout and Map properties to specify the ActiveView.