![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Get An In-Memory Schematic Feature Geometry Snippet (ArcObjects .NET 10.4 SDK) |
Retrieve the geometry for an in-memory schematic feature
/// <summary> /// Retrieve the geometry for an in-memory schematic feature /// </summary> /// <param name="schemFeature">The ISchematicInMemoryFeature for which you want to retrieve the geometry</param> /// <returns>The IGeometry</returns> public void GetFeatureGeometry(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemFeature) { return (ESRI.ArcGIS.Geometry.IGeometry)schemFeature.ShapeCopy; }
''' <summary> ''' Retrieve the geometry for an in-memory schematic feature ''' </summary> ''' <param name="schemFeature">The ISchematicInMemoryFeature for which you want to retrieve the geometry</param> ''' <returns>The IGeometry</returns> Public Function GetFeatureGeometry(ByVal schemFeature As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature) As ESRI.ArcGIS.Geometry.IGeometry Return TryCast(schemFeature.ShapeCopy, ESRI.ArcGIS.Geometry.IGeometry) End Function