|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPlaceCollection
Provides access to members that manage a place collection. Duplicate names are not allowed.
The IPlaceCollection interface manages adding and removing Place objects to the collection.
| Method Summary | |
|---|---|
boolean |
add(IPlace pPlace,
boolean allowChangeName)
Add to place collection. |
void |
removeAll()
Remove all places. |
int |
removeByName(String name,
boolean removeMatching)
Remove from place collection. |
| Method Detail |
|---|
boolean add(IPlace pPlace,
boolean allowChangeName)
throws IOException,
AutomationException
Adds the specified Place to the end of the collection.
allowChangeName specifies whether the IPlace::Name can be renamed when adding the same Place to the collection multiple times.
For example, if allowChangeName is true and a Place is added with an IPlace::Name set to "My Place", and there is already a Place object with that name in the collection the Place object will be added to the collection with an IPlace::Name set to "My Place [2]". If allowChangeName is false the Place object will not get added to the collection.
pPlace - A reference to a com.esri.arcgis.controls.IPlace (in)allowChangeName - The allowChangeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int removeByName(String name,
boolean removeMatching)
throws IOException,
AutomationException
Removes the Place object with the specified IPlace::Name from the collection. Returns the number of Place objects removed.
removeMatching specifies whether Place objects with IPlace::Name properties matching the following pattern will be removed: "My Place", "My Place [2]" and "My Place [3]". Place objects are added to the collection with this pattern when allowChangeName is passed as true to the Add method.
name - The name (in)removeMatching - The removeMatching (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeAll()
throws IOException,
AutomationException
Removes all of the Place objects from the collection.
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 | ||||||||