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 _
)
[C#]
public void SetActiveView (
    IActiveView pActiveView
);
[C++]
HRESULT SetActiveView(
  IActiveView* pActiveView
);
[C++]
Parameters
pActiveView [in]

pActiveView is a parameter of type IActiveView*

Product Availability

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

Description

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

See Also

IMapDocument Interface