This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Get The Children Schematic In-Memory Features Related To An In-Memory Schematic Features Snippet (ArcObjects .NET 10.4 SDK) |
Retrieve all the schematic in-memory features that have a parent-child relation with a particular parent schematic in-memory feature
/// <summary> /// Retrieve all the schematic in-memory features that have a parent-child relation with a particular parent schematic in-memory feature /// </summary> /// <param name="schemInMemoryFeature">The parent SchematicInMemoryFeature for which you want to retrieve the children schematic in-memory features</param> /// <returns>The retrieved IEnumSchematicInMemoryFeature collection of children schematic features</returns> public ESRI.ArcGIS.Schematic.IEnumSchematicInMemoryFeature GetChildrenFromInMemoryFeature(ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature schemInMemoryFeature) { ESRI.ArcGIS.Schematic.ISchematicRelationController schRelCont=new ESRI.ArcGIS.Schematic.SchematicRelationController(); return schRelCont.FindChildren(schemInMemoryFeature); }
''' <summary> ''' Retrieve all the schematic in-memory features that have a parent-child relation with a particular parent schematic in-memory feature ''' </summary> ''' <param name="schemInMemoryFeature">The parent SchematicInMemoryFeature for which you want to retrieve the children schematic in-memory features</param> ''' <returns>The retrieved IEnumSchematicInMemoryFeature collection of children schematic features</returns> Public Function GetChildrenFromInMemoryFeature(ByVal schemInMemoryFeature As ESRI.ArcGIS.Schematic.ISchematicInMemoryFeature) As ESRI.ArcGIS.Schematic.IEnumSchematicInMemoryFeature Dim schRelCont As ESRI.ArcGIS.Schematic.ISchematicRelationController=New ESRI.ArcGIS.Schematic.SchematicRelationController() Return schRelCont.FindChildren(schemInMemoryFeature) End Function