ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / LinkMode Enumeration
Example Example

In This Topic
    LinkMode Enumeration
    In This Topic

    Defines the method used to link multiple 2D and 3D views together.

    This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

    Syntax
    Members
    MemberDescription
    Center Views will look at the same location. When linking 2D and 3D views, the locations are approximated.
    None Views are not linked.
    Scale Views will maintain the same scale and rotation. When linking 2D and 3D views, the scales are approximated between view types.
    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;
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Desktop.Mapping.LinkMode

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also