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

IMapDocument.SetActiveView Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDocument Interface > IMapDocument.SetActiveView Method
ArcGIS Developer Help

IMapDocument.SetActiveView Method

Set the ActiveView content of the map document.

[Visual Basic .NET]
Public Sub SetActiveView ( _
    ByVal pActiveView As IActiveView _
public void SetActiveView (
    IActiveView pActiveView
HRESULT SetActiveView(
  IActiveView* pActiveView
pActiveView [in]

pActiveView is a parameter of type IActiveView*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Use this method to set the ActiveView of the MapDocument. Use the PageLayout and Map properties to specify the ActiveView.

See Also

IMapDocument Interface