|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INamedSet
Provides access to a collection of named items.
The INamedSet interface provides methods to Add, Remove, and retrieve objects in a NamedSet.
You can retrieve an object stored in a NamedSet by calling Item and passing in an index from 0 to Count - 1 or you can retrieve an object by calling ItemByName.
| Method Summary | |
|---|---|
void |
add(String name,
Object element)
Add a new named item to the collection. |
int |
getCount()
The number of items in the collection. |
Object |
getItem(int index)
The item at a given index. |
Object |
getItemByName(String name)
The item corresponding to a given name. |
String |
getName(int index)
The name of the item at a given index. |
void |
remove(Object element)
Remove an item from the collection by reference. |
void |
removeAll()
Empty the collection and remove all items. |
| Method Detail |
|---|
int getCount()
throws IOException,
AutomationException
Returns the number of objects in the NamedSet.
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getName(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object getItem(int index)
throws IOException,
AutomationException
index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object getItemByName(String name)
throws IOException,
AutomationException
name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void add(String name,
Object element)
throws IOException,
AutomationException
Adds an object to the NamedSet identified by the specified name.
name - The name (in)element - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void remove(Object element)
throws IOException,
AutomationException
Removes an object from the NamedSet.
element - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void removeAll()
throws IOException,
AutomationException
Removes all of the objects from the NamedSet.
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 | ||||||||