|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISymbolCollection
Provides access to members that control a collection of symbols and id pairs.
ISymbolCollection provides access to the members of the symbol collection. This interface is most commonly used to maintain the symbol collection of an AnnotationFeatureClassExtension. Care should be taken when modifying symbols in the collection of an AnnotationFeatureClassExtension. Updating a TextSymbol property for an existing symbol in use that results in a change in the size or shape of a TextElement will result in a disconnect between the drawn symbol and the feature geometry. This can be resolved by updating the out of sync features by calling IFeature::Store, but it is generally recommended that only new symbols should be added. ISymbolCollection2 provides new methods for adding new symbols to the collection and guaranteeing unique symbol IDs. It is recommended that developers use ISymbolCollection2 to interact with the SymbolCollection.
Method Summary | |
---|---|
ISymbol |
getSymbol(int symbolID)
The symbol associated with the symbolID. |
ISymbolIdentifier |
next()
Returns the next symbolID-symbol pair in the collection. |
void |
remove(int symbolID)
Removes the symbolID-symbol pair in the collection. |
void |
removeAll()
Removes all the symbolID-symbol pairs in the collection. |
void |
replace(int symbolID,
ISymbol symbol)
Replaces the symbol associated with the symbolID. |
void |
reset()
Prepares the collection for Next to be called. |
void |
setSymbolByRef(int symbolID,
ISymbol symbol)
The symbol associated with the symbolID. |
Method Detail |
---|
ISymbol getSymbol(int symbolID) throws IOException, AutomationException
symbolID
- The symbolID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSymbolByRef(int symbolID, ISymbol symbol) throws IOException, AutomationException
symbolID
- The symbolID (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reset() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISymbolIdentifier next() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void replace(int symbolID, ISymbol symbol) throws IOException, AutomationException
symbolID
- The symbolID (in)symbol
- A reference to a com.esri.arcgis.display.ISymbol (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(int symbolID) throws IOException, AutomationException
symbolID
- The symbolID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAll() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |