|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGroupElement
Provides access to members that control the Group element.
The GroupElement object contains a collection of elements grouped together so as to be be manipulated by the user as one single element.
GroupElement
Method Summary | |
---|---|
void |
addElement(IElement element)
Adds the given element to the group. |
void |
clearElements()
Removes all elements from the group. |
void |
deleteElement(IElement element)
Removes the given element from the group. |
IElement |
getElement(int index)
Element at the given index of the group. |
int |
getElementCount()
Number of elements in the group. |
IEnumElement |
getElements()
Elements in the group. |
void |
setElementsByRef(IEnumElement elements)
Elements in the group. |
Method Detail |
---|
IEnumElement getElements() throws IOException, AutomationException
Elements returns or sets the elements contained in the group. Use this property when you want to enumerate through each element in the group.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setElementsByRef(IEnumElement elements) throws IOException, AutomationException
elements
- A reference to a com.esri.arcgis.carto.IEnumElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getElementCount() throws IOException, AutomationException
ElementCount returns the number of elements contained within the group.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IElement 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 addElement(IElement element) throws IOException, AutomationException
AddElement can be used to add additional elements to the group. This method is most commonly used when you want to select a set of elements in the map or layout and programmatically group them together.
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteElement(IElement element) throws IOException, AutomationException
DeleteElement is used to delete the element. If you want to remove the element from the group without deleting it, then it is necessary to maintain the reference to the element and re-add it to the GraphicsContainer after issuing the DeleteElement statement.
element
- A reference to a com.esri.arcgis.carto.IElement (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearElements() throws IOException, AutomationException
ClearElements will delete all elements from the group and the map or layout. This method can be used when you want to remove all elements in the group from the map. IGraphicsContainer::DeleteAllElements will delete all the elements in the map, while IGroupElement::ClearElements will delete all elements in the current group.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGraphicsContainer.deleteAllElements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |