ArcGIS Pro 2.9 API Reference Guide
MapView Class Members
Properties  Methods  Events


ArcGIS.Desktop.Mapping Namespace : MapView Class

The following tables list the members exposed by MapView.

Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic) Gets the active map view. Returns null if there is no active map view.  
Public Property Gets the name of the active range definition in the map view.  
Public Property Gets the animation for the view.  
Public Property Gets the current Camera of the view.  
Public Property Gets whether the mapview can be printed  
Public Property Gets or sets the paused state on the map view.  
Public Property Gets the current extent of the view.  
Public Property Gets the field of view angle of the scene view.  
Public Property Gets or sets the floor filter settings which determine which floor-aware data is visible in the map view.  
Public PropertyGets a value that indicates whether the MapView can be accessed. This property is false while the map view processes major operations like initializing or when a 3D view changes between SceneLocal and SceneGlobal.  
Public Propertystatic (Shared in Visual Basic) Gets or sets the method used to link views.  
Public Property Gets the locator manager attached to this mapview.  
Public Property Gets the current look at Camera of the view.  
Public Property Gets the map or scene associated with the view.  
Public Property Gets or sets the range extent visible in the map view.  
Public Property Gets the range names defined on layers in the map view.  
Public Property Gets the current drawing mode of the scene view.  
Public Property Gets or sets the time range visible in the map view.  
Public Property Gets the perspective of the view.  
Top
Public Methods
 NameDescription
Public Method An asynchronous function to add an ExploratoryAnalysisBase subclass instance to the MapView. Calling this method activates the Exploratory Analysis object and presents it on the view.  
Public Method Add a control over the view.  
Public Method Stop the current drawing of the MapView.  
Public MethodGets a value indicating if the view can be changed to the provided ArcGIS.Core.CIM.MapViewingMode.  
Public Method Capture a bitmap of the MapView content.  
Public Method Clears the selection from the TOC.  
Public Method Converts a point in client coordinates relative to the top-left corner of the view to a point in the coordinates of the map or scene. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Converts a screen point to a point in client coordinates relative to the top-left corner of the view.  
Public Method Closes the active popup window. You must be on the UI thread to call this function  
Public MethodOverloaded.   
Public MethodOverloaded.   
Public MethodOverloaded.   
Public Method Get a list of the Exploratory Analysis objects that exist for this MapView. You can check each object's type to identify which subclass it is.  
Public Method Return features that intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Return features that intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Get all the current overlay controls.  
Public Method Returns the selected DataSourceMember.  
Public Method Returns the collection of elevation sources selected in the TOC.  
Public Method Returns the collection of elevation surfaces selected in the TOC.  
Public Method Returns the collection of voxel isosurfaces selected in the TOC.  
Public Method Returns the collection of layers selected in the TOC.  
Public Method Returns the collection of legend classes selected in the TOC.  
Public Method Returns the collection of voxel locked sections selected in the TOC.  
Public Method Returns the collection of voxel sections selected in the TOC.  
Public Method Returns the collection of voxel slices selected in the TOC.  
Public Method Returns the collection of tables selected in the TOC.  
Public Method Returns the current size of the view.  
Public Method Indicates whether the map view has a next camera position.  
Public Method Indicates whether the map view has a previous camera position.  
Public MethodOverloaded.   
Public Method Center the view at a given point. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Center the view at a given point.  
Public Method Converts a point in the coordinates of the map or scene to a point in client coordinates relative to the top-left corner of the view. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Converts a point in the coordinates of the map or scene to a point in screen coordinates. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Go to the next camera position. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Go to the next camera position.  
Public MethodOverloaded.   
Public MethodOverloaded.   
Public Method Pan the view to the extent of the selected features in the map or scene. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Pan the view to the extent of the selected features in the map or scene.  
Public Method Go to the previous camera position. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Go to the previous camera position.  
Public Method Print the mapview. The Print Dialog will be shown allowing you to configure the print options.  
Public Method Force a redraw of the map view. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Force a redraw of the map view  
Public Method Removes the provided ExploratoryAnalysisBase instance from the MapView. It will no longer be tracked or drawn in the view. The parameter provided should be destroyed after it has been removed to avoid errors or confusion.  
Public Method Remove a control from over the view.  
Public Method Converts a point in client coordinates relative to the top-left corner of the view to a screen point.  
Public Method Converts a point in screen coordinates to a point in the coordinates of the map or scene. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Selects the DataSourceMember in the TOC.  
Public Method Selects elevation sources in the TOC.  
Public Method Selects elevation surfaces in the TOC.  
Public Method Select features that intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Select features that intersect a geometry. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Selects layers in the TOC.  
Public Method Selects legend classes in the TOC.  
Public Method Selects standalone tables in the TOC.  
Public Method Selects the voxel isosurface in the TOC.  
Public Method Selects the voxel locked section in the TOC.  
Public Method Selects the voxel section in the TOC.  
Public Method Selects the voxel slice in the TOC.  
Public Method Sets the active range name for the map view.  
Public Method Sets the field of view angle of the scene view.  
Public Method Sets the perspective of the scene view.  
Public Method Set the perspective of the map view. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Set the perspective of the map view..  
Public MethodOverloaded.   
Public MethodOverloaded.   
Public Method Zoom the Camera in by a fixed amount. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Zoom the Camera in by a fixed amount.  
Public Method Zoom the Camera out by a fixed amount. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Zoom the Camera out by a fixed amount.  
Public MethodOverloaded.   
Public MethodOverloaded.   
Public Method Zoom the view to the full extent of the map or scene. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Zoom the view to the full extent of the map or scene.  
Public Method Zoom the view to the extent of the selected features in the map or scene. This method must be called on the MCT. Use QueuedTask.Run.  
Public Method Zoom the view to the extent of the selected features in the map or scene.  
Top
Extension Methods
 NameDescription
Public Extension MethodOverloaded. 
Public Extension MethodOverloaded. 
Public Extension Method Clears the current sketch in the view.
Public Extension Method Gets the current geometry of the sketch without finishing it.
Public Extension Method Gets the type of geometry for the current sketch.
Public Extension MethodOverloaded. 
Public Extension Method Sets the current geometry of the sketch without finishing it.
Public Extension MethodOverloaded. 
Top
Public Events
 NameDescription
Public EventOccurs when the view size changed. Use GetViewSize to get the size.  
Top
See Also

Reference

MapView Class
ArcGIS.Desktop.Mapping Namespace