I have a geodatabase with an annotation feature class in it containing 3 subtypes. Now I load the featuredataset to the map with this code:
IFeatureClass featClass = (workspace as IFeatureWorkspace).OpenFeatureClass(sNameOfFeatclass);IFeatureLayer fLyr = new FeatureLayer();fLyr.FeatureClass = featClass; In ArcMap the opened Layer is displayed but symbology is like polygon classified with the subtypes. In debug mode i see that the featureclass is of type esriFTAnnotation and the subtypes are present but the layer does not support the interface IAnnotationLayer.
In ressources i only have found how to create an AnnotationFeature Class, but in my case the featureclass exists. How can i load it to map so that in layerproperties the tab Annotation is displayed and not Labelling?
أكثر...
IFeatureClass featClass = (workspace as IFeatureWorkspace).OpenFeatureClass(sNameOfFeatclass);IFeatureLayer fLyr = new FeatureLayer();fLyr.FeatureClass = featClass; In ArcMap the opened Layer is displayed but symbology is like polygon classified with the subtypes. In debug mode i see that the featureclass is of type esriFTAnnotation and the subtypes are present but the layer does not support the interface IAnnotationLayer.
In ressources i only have found how to create an AnnotationFeature Class, but in my case the featureclass exists. How can i load it to map so that in layerproperties the tab Annotation is displayed and not Labelling?
أكثر...