This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARControl Interface > IARControl.CurrentView Property (ArcObjects .NET 10.5 SDK) |
The current map or page layout view.
[Visual Basic .NET] Public Property CurrentView As Object
[C#] public object CurrentView {get; set;}
One of the most important aspects of the ArcReaderControl is the notion of its views. You can think of the view as the place where data is drawn. A view is either the ARPageLayout or the IARPageLayout::FocusARMap. Only one of these views can be visible at a time, and is known as the CurrentView. The CurrentViewType returns a constant indicating the type of CurrentView.
Setting the CurrentView triggers the OnCurrentViewChanged event. To set the CurrentView to Nothing, use the UnloadDocument method.
2003 800A07D3: No document loaded
2005 800A07D5: Invalid view object - the view must reference a valid ARPageLayout or ARMap from the loaded document
2100 800A0834: The current document does not have permission to change view
Setting the CurrentView property will return an error if the currently loaded document was not published with permission to ChangeView. Use the IARControl::HasDocumentPermission method to determine this.