public interface IList extends com4j.Com4jObject, Iterable<com4j.Com4jObject>
Modifier and Type | Method and Description |
---|---|
void |
add(Object vNew)
Adds a new item to the current list object.
|
int |
count()
The number of items in the list.
|
void |
insert(int pos,
Object vNew)
Inserts a new item at the specified position.
|
Object |
item(int index)
Gets an item by index.
|
Iterator<com4j.Com4jObject> |
iterator()
Gets an IEnumVARIANT enumerator.
|
void |
remove(int index)
Removes the specified item from the current list object.
|
void |
swap(int pos1,
int pos2)
Swaps the two list items specified by their positions.
|
advise, dispose, equals, getComThread, getIUnknownPointer, getPointer, getPtr, hashCode, is, queryInterface, setName, toString
forEach, spliterator
int count()
The number of items in the list.
Getter method for the COM property "Count"
void add(Object vNew)
Adds a new item to the current list object.
vNew
- Mandatory java.lang.Object parameter.void remove(int index)
Removes the specified item from the current list object.
index
- Mandatory int parameter.Object item(int index)
Gets an item by index. The index is one-based.
Getter method for the COM property "Item"
index
- Mandatory int parameter.Iterator<com4j.Com4jObject> iterator()
Gets an IEnumVARIANT enumerator. For information on the IEnumVARIANT, see Microsoft documentation.
Getter method for the COM property "_NewEnum"
void insert(int pos, Object vNew)
Inserts a new item at the specified position.
pos
- Mandatory int parameter.vNew
- Mandatory java.lang.Object parameter.void swap(int pos1, int pos2)
Swaps the two list items specified by their positions.
pos1
- Mandatory int parameter.pos2
- Mandatory int parameter.Copyright © 2020. All rights reserved.