ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / LinkMode Property
Example

In This Topic
    LinkMode Property
    In This Topic
    Gets or sets the method used to link views.
    Syntax
    public static LinkMode LinkMode {get; set;}
    Public Shared Property LinkMode As LinkMode
    Exceptions
    ExceptionDescription
    Scale can only be set in combination with Center.
    Remarks
    View linking is a navigation experience and can be used for multiple maps, scenes, or a mix of these 2D and 3D views. When you enable view linking all views will update their extents to match depending on the link mode that is selected. Currently the link mode Scale can only be used in combination with Center. Center can be used on its own or in combination with Scale.
    Example
    Enable View Linking
    public void EnableViewLinking()
    {
      //Get the active map view.
      var mapView = MapView.Active;
      if (mapView == null)
        return;
    
      //Set the view linking mode to Center and Scale.
      MapView.LinkMode = LinkMode.Center | LinkMode.Scale;
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also