This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Get The SchematicDiagram Related To A Schematic Layer Snippet (ArcObjects .NET 10.4 SDK) |
Retrieve the schematic diagram related to a schematic layer
/// <summary> /// Retrieve the schematic diagram related to a schematic layer /// </summary> /// <param name="schemLayer">The ISchematicLayer the schematic diagam is related to</param> /// <returns>The retrieved ISchematicDiagram</returns> public ESRI.ArcGIS.ISchematicDiagram GetDiagramFromSchematicLayer(ESRI.ArcGIS.Schematic.ISchematicLayer schemLayer) { return schemLayer.SchematicDiagram; }
''' <summary> ''' Retrieve the schematic diagram related to a schematic layer ''' </summary> ''' <param name="schemLayer">The ISchematicLayer the schematic diagam is related to</param> ''' <returns>The retrieved ISchematicDiagram</returns> Public Function GetDiagramFromSchematicLayer(ByVal schemLayer As ESRI.ArcGIS.Schematic.ISchematicLayer) As ESRI.ArcGIS.Schematic.ISchematicDiagram Return schemLayer.SchematicDiagram End Function