com.esri.arcgis.geometry
Interface IPolygonArray

All Superinterfaces:
Serializable
All Known Implementing Classes:
IPolygonArrayProxy, PolygonArray

public interface IPolygonArray
extends Serializable

Provides access to the IPolygonArray Interface.

Product Availability

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


Method Summary
 void add(IPolygon polygon)
          Adds a polygon.
 int getCount()
          The polygon count.
 IPolygon getElement(int index)
          The polygon at the specified position.
 void insert(int index, IPolygon polygon)
          Adds a polygon at the specified position.
 void remove(int index)
          Removes the polygon at the specified position.
 void removeAll()
          Removes all polygons.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
The polygon 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

IPolygon getElement(int index)
                    throws IOException,
                           AutomationException
The polygon 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.IPolygon
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 polygon 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 polygons.

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(IPolygon polygon)
         throws IOException,
                AutomationException
Adds a polygon.

Product Availability

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

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

insert

void insert(int index,
            IPolygon polygon)
            throws IOException,
                   AutomationException
Adds a polygon at the specified position.

Product Availability

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

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