|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IArray
Provides access to members that control a simple array of objects.
An Array object is used to hold an indexed collection of generic objects. The Array uses a zero-based index.
When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.
Method Summary | |
---|---|
void |
add(Object unk)
Adds an object to the array. |
int |
getCount()
The element count of the array. |
Object |
getElement(int index)
Searches for the object in the array. |
void |
insert(int index,
Object unk)
Adds an object to the array at the specified index. |
void |
remove(int index)
Removes an object from the array. |
void |
removeAll()
Removes all objects from the array. |
Method Detail |
---|
int getCount() throws IOException, AutomationException
Returns the number of elements in the array.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getElement(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void add(Object unk) throws IOException, AutomationException
Adds the element to the end of the array.
When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.
unk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insert(int index, Object unk) throws IOException, AutomationException
Adds the element to the array at the specified index. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.
index
- The index (in)unk
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void remove(int index) throws IOException, AutomationException
Removes the element at the specified index from the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeAll() throws IOException, AutomationException
Removes all of the elements from the array.
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 |