|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IToolbarItem2
Provides access to members that control ToolbarControl items.
A ToolbarItem represents a Command, Tool, ToolControl, MultiItem, Menu or Palette on the ToolbarControl.
Method Summary | |
---|---|
Object |
getItemObject()
The Command, Tool, ToolControl, ToolbarMenu, ToolbarPalette or MultiItem used by the item. |
IMultiItem |
getMultiItem()
If the item is a multi-item, this property is a MultiItem object. |
IToolbarPalette |
getPalette()
If the item is a palette, this property is a ToolbarPalette object. |
int |
getType()
The type of item |
Methods inherited from interface com.esri.arcgis.controls.IToolbarItem |
---|
getCommand, getCustomProperty, getGroupSpacing, getMenu, getStyle, getUID, isGroup, setCustomProperty, setGroup, setGroupSpacing, setStyle |
Method Detail |
---|
IToolbarPalette getPalette() throws IOException, AutomationException
Returns the IToolbarPalette used by the item if the item represents a palette. If the item does not use a palette Nothing is returned.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMultiItem getMultiItem() throws IOException, AutomationException
Returns the IMultiItem object used by the item if the item represents a multi-item. If the item does not use a multi-item Nothing is returned.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getType() throws IOException, AutomationException
Returns the type of object returned by ItemObject.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getItemObject() throws IOException, AutomationException
Returns the ICommand, ITool, IToolControl, IMultiItem, IToolbarMenu2 or IToolbarPalette object from the ToolbarItem. Use the Type property to determine the type of object to be returned before using the ItemObject property.
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 |