public DiagramTemplate GetDiagramTemplate( string name )
Public Function GetDiagramTemplate( _ ByVal name As String _ ) As DiagramTemplate
Parameters
- name
- The name of the diagram template.
Return Value
The DiagramTemplate with the specified name.
public DiagramTemplate GetDiagramTemplate( string name )
Public Function GetDiagramTemplate( _ ByVal name As String _ ) As DiagramTemplate
Exception | Description |
---|---|
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
public void RetrieveDiagramTemplates(UtilityNetwork utilityNetwork) { using (DiagramManager diagramManager = utilityNetwork.GetDiagramManager()) { // get all templates IReadOnlyList<DiagramTemplate> templates = diagramManager.GetDiagramTemplates(); // get a template by name DiagramTemplate template = diagramManager.GetDiagramTemplate(templateName); } }
Target Platforms: Windows 11, Windows 10