This document is archived and information here might be outdated. Recommended version. |
Retrieve a schematic diagram in a given schematic dataset from its name
/// <summary> /// Retrieve a SchematicDiagram in a given SchematicDataset from its name /// </summary> /// <param name="schemDataset">The SchematicDataset containing the SchematicDiagram</param> /// <param name="schemDiagClass">The SchematicDiagramClass the schematic diagram is based on</param> /// <param name="DiagramName">The name of the SchematicDiagram to retrieve</param> /// <returns>The retrieved ESRI.ArcGIS.Schematic.ISchematicDiagram</returns> public ESRI.ArcGIS.Schematic.ISchematicDiagram GetSchematicDiagramFromSchematicDatasetByName(ESRI.ArcGIS.Schematic.ISchematicDataset schemDataset, ESRI.ArcGIS.Schematic.ISchematicDiagramClass schemDiagClass, string DiagramName) { // cast SchematicDataset into ISchematicDiagramContainer ESRI.ArcGIS.Schematic.ISchematicDiagramContainer schDiagramCont=(ESRI.ArcGIS.Schematic.ISchematicDiagramContainer)schemDataset; return schDiagramCont.get_SchematicDiagramByName(schemDiagClass, DiagramName); }
''' <summary> ''' Retrieve a SchematicDiagram in a given SchematicDataset from its name ''' </summary> ''' <param name="schemDataset">The SchematicDataset containing the SchematicDiagram</param> ''' <param name="schemDiagClass">The SchematicDiagramClass the schematic diagram is based on</param> ''' <param name="DiagramName">The name of the SchematicDiagram to retrieve</param> ''' <returns>The retrieved ESRI.ArcGIS.Schematic.ISchematicDiagram</returns> Public Function GetSchematicDiagramFromSchematicDatasetByName(ByVal schemDataset As ESRI.ArcGIS.Schematic.ISchematicDataset, ByVal schemDiagClass As ESRI.ArcGIS.Schematic.ISchematicDiagramClass, ByVal DiagramName As String) As ESRI.ArcGIS.Schematic.ISchematicDiagram ' cast SchematicDataset into ISchematicDiagramContainer Dim schDiagramCont As ESRI.ArcGIS.Schematic.ISchematicDiagramContainer=TryCast(schemDataset, ESRI.ArcGIS.Schematic.ISchematicDiagramContainer) Return schDiagramCont.SchematicDiagramByName(schemDiagClass, DiagramName) End Function