ArcGIS Pro 3.3 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 bool IsLinkChartView {get;}
    Public ReadOnly Property IsLinkChartView As Boolean
    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, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also