This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.IsActive Method (ArcObjects .NET 10.5 SDK) |
Indicates if view is active or not.
[Visual Basic .NET] Public Function IsActive ( _ ) As Boolean
[C#] public bool IsActive ( );
[C++]
HRESULT IsActive(
VARIANT_BOOL* IsActive
);
[C++]
Parameters IsActive [out, retval] IsActive is a parameter of type VARIANT_BOOL
In layout view, all of the Maps and the PageLayout are active. In data view, only the focus map is active.
The PageLayout object uses this property when adding Elements; if the PageLayout is active, new elements are activated (IElement::Activate).