|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMaps2
Provides access to members of map collection.
Every map document contains at least one Map object but a map document can contain any number of Map objects. The Maps object contains a collection of all the maps of the document. IMxDocument::Maps returns a reference to this collection.
The IMaps2 interface is a collection of map objects and contains method and properties to manage the maps contained by the document.
Only one Map can have focus at a time, and this Map is called the focus map. IMxDocument::FocusMap returns a reference to the Map currently with focus.
Method Summary | |
---|---|
void |
add(IMap map)
Adds a map to the collection. |
IMap |
create()
Creates a new map. |
int |
getCount()
Number of maps. |
IMap |
getItem(int index)
The map at the given index. |
void |
moveItem(IMap pMap,
int toIndex)
Moves the map to the given index. |
void |
remove(IMap map)
Removes a map from the collection. |
void |
removeAt(int index)
Removes a map at the specified index. |
void |
reset()
Removes all maps from the collection. |
Method Detail |
---|
int getCount() throws IOException, AutomationException
The Count property returns the number of Map objects in the collection.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap getItem(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap create() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(IMap map) throws IOException, AutomationException
map
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void add(IMap map) throws IOException, AutomationException
map
- A reference to a com.esri.arcgis.carto.IMap (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAt(int index) throws IOException, AutomationException
index
- The index (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.void moveItem(IMap pMap, int toIndex) throws IOException, AutomationException
pMap
- A reference to a com.esri.arcgis.carto.IMap (in)toIndex
- The toIndex (in)
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 |