This document is archived and information here might be outdated.  Recommended version.


Remove All The Vertices On An In-Memory Schematic Feature Link Snippet (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference

Remove All The Vertices On An In-Memory Schematic Feature Link Snippet

Remove all the vertices that display along an in-memory schematic feature link

[C#]
        /// <summary>
        /// Remove all the vertices that display along an in-memory schematic feature link
        /// </summary>
        /// <param name="schemLink">The ISchematicInMemoryFeatureLink for which all the vertices must be removed</param>
        public void RemoveAllVerticesFromLink(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLink schemLink)
        {
                // cast SchematicInMemoryFeatureLink into ISchematicInMemoryFeatureLinkGeometry
                ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLinkGeometry myGeo=(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLinkGeometry)schemLink;
                if (myGeo != null)
                {
                        myGeo.RemoveAllVertices();
                }
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Remove all the vertices that display along an in-memory schematic feature link
        ''' </summary>
        ''' <param name="schemLink">The ISchematicInMemoryFeatureLink for which all the vertices must be removed</param>
        Public Sub RemoveAllVerticesFromLink(ByVal schemLink As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLink)
                ' cast SchematicInMemoryFeatureLink into ISchematicInMemoryFeatureLinkGeometry
                Dim myGeo As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLinkGeometry=TryCast(schemLink, ESRI.ArcGIS.Schematic.ISchematicInMemoryFeatureLinkGeometry)
                If myGeo IsNot Nothing Then
                        myGeo.RemoveAllVertices()
                End If
        End Sub

Additional Requirements
  • The code in this document requires the following References added to the Visual Studio project:
  • ESRI.ArcGIS.Schematic