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


Test Whether A Schematic In-Memory Feature Is A Parent Snippet (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference

Test Whether A Schematic In-Memory Feature Is A Parent Snippet

Testing whether a schematic in-memory feature is a parent schematic feature or not

[C#]
                /// <summary>
                /// Testing whether a schematic in-memory feature is a parent schematic feature or not
                /// </summary>
                /// <param name="schemInMemoryFeature">The SchematicInMemoryFeature for which you want to know whether it is a parent or not</param>
                /// <returns>bool</returns>
                public bool IsParentFromInMemoryFeature(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemInMemoryFeature)
                {
                        ESRI.ArcGIS.Schematic.ISchematicRelationController schRelCont=new ESRI.ArcGIS.Schematic.SchematicRelationController();

                        return schRelCont.IsParent(schemInMemoryFeature);
                }
[Visual Basic .NET]
        ''' <summary>
        ''' Testing whether a schematic in-memory feature is a parent schematic feature or not
        ''' </summary>
        ''' <param name="schemInMemoryFeature">The SchematicInMemoryFeature for which you want to know whether it is a parent or not</param>
        ''' <returns>Boolean</returns>
        Public Function IsParentFromInMemoryFeature(ByVal schemInMemoryFeature As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature) As Boolean

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

                Return schRelCont.IsParent(schemInMemoryFeature)
        End Function

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