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


IPageLayoutControl2.ActiveView Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControl2 Interface > IPageLayoutControl2.ActiveView Property
ArcGIS Developer Help

IPageLayoutControl2.ActiveView Property

The active view of the PageLayout contained by the PageLayoutControl.

[Visual Basic .NET]
Public ReadOnly Property ActiveView As IActiveView
[C#]
public IActiveView ActiveView {get;}
[C++]
HRESULT get_ActiveView(
void
);

Product Availability

Available with ArcGIS Engine.

Description

This is the ActiveView on the PageLayout CoClass contained within the PageLayoutControl.

Remarks

When the PageLayoutControl is added to a container the PageLayout's element selection, IActiveView::Selection, is Nothing. This causes the esriViewGraphicSelection draw phase to ignore any selected graphics. To resolve this, set the IActiveView::Selection property to the IViewManager::ElementSelection property. This will result in the MapFrame element becoming selected.

The IActiveView::ShowRuler property will not display any rulers on the PageLayout because the PageLayoutControl does not itself manage rulers. An application must draw its own rulers.

See Also

IPageLayoutControl2 Interface

.NET Samples

Synchronized MapControl and PageLayoutControl application