//I get the item in the Collection IAnnotateLayerPropertiesCollection pAnnoLayerPropsColl = pGeoFLayer.getAnnotationProperties(); IAnnotateLayerProperties[] alpArray = new IAnnotateLayerProperties[10]; IElementCollection[] visibles = new IElementCollection[10]; IElementCollection[] invisibles = new IElementCollection[10]; pAnnoLayerPropsColl.queryItem(0, alpArray, visibles, invisibles); //I get the text in the label IElement[] pElement = new IElement[10]; ITextElement pTextElement; int i = 0; String sText; for (i=0; i < visibles.length; i++){ visibles[0].queryItem(i, pElement, null); pTextElement = (ITextElement) pElement[0]; sText = pTextElement.getText(); System.out.println(sText); }
AutomationException: 0x80070057 - The hook has not yet been set into the CommandPool in 'esriControls.CommandPool.1' at com.esri.arcgis.carto.ElementCollection.queryItem(Unknown Source)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.