ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / IsLinkChartView Property
Example

In This Topic
    IsLinkChartView Property
    In This Topic
    Gets whether the MapView is a link chart view
    Syntax
    Public ReadOnly Property IsLinkChartView As Boolean
    public bool IsLinkChartView {get;}
    Example
    Does Active MapView contain a link chart map
    {
      var mv = MapView.Active;
      // check the view
      var isLinkChartView = mv.IsLinkChartView;
    
      // or alternatively get the map and check that
      //var map = MapView.Active.Map;
      // check the MapType to determine if it's a link chart map
      var isLinkChart = map.MapType == MapType.LinkChart;
      // or you could use the following
      // var isLinkChart = map.IsLinkChart;
    }
    Find Link Chart from Map panes
    {
      var mapPanes = FrameworkApplication.Panes.OfType<IMapPane>().ToList();
      var mapPane = mapPanes.FirstOrDefault(
          mp => mp.MapView.IsLinkChartView && mp.MapView.Map.Name == "Acme Link Chart");
      var lcMap = mapPane.MapView.Map;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.3 or higher.
    See Also