|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVariantArray
Provides access to members that control variant arrays.
The IVariantArray interface provides methods and properties for inserting, removing and accessing elements in a VarArray via a zero-based index.
Method Summary | |
---|---|
void |
add(Object element)
Add an element. |
int |
getCount()
The element count. |
Object |
getElement(int index)
An element in the array. |
void |
insert(int index,
Object element)
Add an element at the specified posiiton. |
void |
remove(int index)
Removes element at the specified position. |
void |
removeAll()
Removes all elements. |
void |
setElement(int index,
Object element)
An element in 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 setElement(int index, Object element) throws IOException, AutomationException
index
- The index (in)element
- A Variant (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.void add(Object element) throws IOException, AutomationException
Adds the element to the end of the array.
element
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void insert(int index, Object element) 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)element
- A Variant (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 |