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


Get The Parent Schematic In-Memory Feature For A Schematic In-Memory Feature Snippet (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference

Get The Parent Schematic In-Memory Feature For A Schematic In-Memory Feature Snippet

Retrieve the parent schematic in-memory feature for a given schematic in-memory feature

[C#]
        /// <summary>
        /// Retrieve the parent schematic in-memory feature for a given schematic in-memory feature
        /// </summary>
        /// <param name="schemInMemoryFeature">The child SchematicInMemoryFeature for which you want to retrieve the parent schematic in-memory feature</param>
        /// <returns>The retrieved parent ISchematicInMemoryFeature</returns>
        public ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature GetParentFromInMemoryFeature(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemInMemoryFeature)
        {
                ESRI.ArcGIS.Schematic.ISchematicRelationController schRelCont=new ESRI.ArcGIS.Schematic.SchematicRelationController();

                return schRelCont.FindParent(schemInMemoryFeature);
        }
[Visual Basic .NET]
        ''' <summary>
        ''' Retrieve the parent schematic in-memory feature for a given schematic in-memory feature
        ''' </summary>
        ''' <param name="schemInMemoryFeature">The child SchematicInMemoryFeature for which you want to retrieve the parent schematic in-memory feature</param>
        ''' <returns>The retrieved parent ISchematicInMemoryFeature</returns>
        Public Function GetParentFromInMemoryFeature(ByVal schemInMemoryFeature As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature) As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature

                Dim schRelCont As ESRI.ArcGIS.Schematic.ISchematicRelationController=New ESRI.ArcGIS.Schematic.SchematicRelationController()

                Return schRelCont.FindParent(schemInMemoryFeature)
        End Function

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