This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ESRI.ArcGIS.Snippets > Snippets > Test Whether A Schematic In-Memory Feature Is A Parent Snippet (ArcObjects .NET 10.4 SDK) |
Testing whether a schematic in-memory feature is a parent schematic feature or not
/// <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); }
''' <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