com.esri.arcgis.geometry
Interface IGeometryArray

All Superinterfaces:
Serializable
All Known Implementing Classes:
GeometryArray, IGeometryArrayProxy

public interface IGeometryArray
extends Serializable

Description

This interface is new at ArcGIS 9.3.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void add(IGeometry g)
          Adds a geometry.
 int getCount()
          The geometry count.
 IGeometry getElement(int index)
          Returns the geometry at the specified position.
 void insert(int index, IGeometry g)
          Adds a geometry at the specified position.
 void remove(int index)
          Removes the geometry at the specified position.
 void removeAll()
          Removes all geometries.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
The geometry count.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElement

IGeometry getElement(int index)
                     throws IOException,
                            AutomationException
Returns the geometry at the specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

void remove(int index)
            throws IOException,
                   AutomationException
Removes the geometry at the specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeAll

void removeAll()
               throws IOException,
                      AutomationException
Removes all geometries.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

void add(IGeometry g)
         throws IOException,
                AutomationException
Adds a geometry.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
g - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

void insert(int index,
            IGeometry g)
            throws IOException,
                   AutomationException
Adds a geometry at the specified position.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
index - The index (in)
g - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.