com.esri.arcgis.catalog
Interface IGxObjectArray

All Superinterfaces:
Serializable
All Known Implementing Classes:
GxObjectArray

public interface IGxObjectArray
extends Serializable

Provides access to members that manage an array of GxObjects.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void empty()
          Removes all objects from the array.
 int getCount()
          The number of objects in the array.
 void insert(int index, IGxObject gxObject)
          Inserts an object into the array before the specified index.
 IGxObject item(int index)
          The object at the given index in the array.
 void remove(int index)
          Removes the object at the specified index in the array.
 

Method Detail

getCount

int getCount()
             throws IOException,
                    AutomationException
The number of objects in the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

insert

void insert(int index,
            IGxObject gxObject)
            throws IOException,
                   AutomationException
Inserts an object into the array before the specified index. If index is -1, the object is inserted at the end.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
index - The index (in)
gxObject - A reference to a com.esri.arcgis.catalog.IGxObject (in)
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 object at the specified index in the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

item

IGxObject item(int index)
               throws IOException,
                      AutomationException
The object at the given index in the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

empty

void empty()
           throws IOException,
                  AutomationException
Removes all objects from the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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