ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / AddDiagramLayer Method
The map to add the diagram layer.
The diagram for which a diagram layer is created and added to the map.

AddDiagramLayer Method
Add a diagram layer to a diagram map.
Syntax
public static DiagramLayer AddDiagramLayer( 
   Map map,
   NetworkDiagram networkDiagram
)

Parameters

map
The map to add the diagram layer.
networkDiagram
The diagram for which a diagram layer is created and added to the map.

Return Value

The added diagram layer.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.1 or higher.
See Also