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


IMxDocument.ActiveViewCommand Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IM > IMxDocument Interface > IMxDocument.ActiveViewCommand Property
ArcGIS Developer Help

IMxDocument.ActiveViewCommand Property

The command associated with the active view.

[Visual Basic .NET]
Public ReadOnly Property ActiveViewCommand As ICommand
[C#]
public ICommand ActiveViewCommand {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

The command associated with the current active view.

In ArcMap the active view can be either a Map (corresponding to Data view in ArcMap) or a PageLayout (corresponding to Layout view in ArcMap). To switch between these different views, ArcMap has two active view commands: GeographicViewCommand and LayoutViewCommand.  These commands are the tiny globe and page buttons on the scroll bar and also appear in the View menu. GeographicViewCommand sets the focus Map as the ActiveView and LayoutViewCommand sets the PageLayout as the ActiveView.

See Also

IMxDocument Interface