Hello,
How do I get the AnnotationProperties of a IAnnotationLayer? A non-annotation IFeaturelayer is also a IGeoFeatureLayer, which has an IAnnotateLayerPropertiesCollection, but an IAnnotationLayer has not.
I'm aware of the IAnnoClass and IAnnoClassExtension, but how to get there?
IAnnoClass annoClass = featureLayer.FeatureClass as IAnnoClass doesn't work, it returns null.
Kind regards,
Pieter
Solved! Go to Solution.
Found after a search on the web in annotation - ArcObjects Anno Classes - Geographic Information Systems Stack Exchange
IAnnotationClassExtension annoClassExtension = featureLayer.FeatureClass.Extension as IAnnotationClassExtension;
IAnnotateLayerPropertiesCollection annoLayerPropsCollection = annoClassExtension.AnnoProperties;
... etcetera
Thanks anyway,
Pieter
Found after a search on the web in annotation - ArcObjects Anno Classes - Geographic Information Systems Stack Exchange
IAnnotationClassExtension annoClassExtension = featureLayer.FeatureClass.Extension as IAnnotationClassExtension;
IAnnotateLayerPropertiesCollection annoLayerPropsCollection = annoClassExtension.AnnoProperties;
... etcetera
Thanks anyway,
Pieter