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 resources 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 layer properties the tab Annotation is displayed and not Labeling?