|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.framework.CommandBar
public class CommandBar
CommandBar object.
CommandBar represents a toolbar, menubar, menu, or context menu. Use the ICommandBars.Find method to get a reference to a specific CommandBar.
Constructor Summary | |
---|---|
CommandBar(Object obj)
Construct a CommandBar using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
ICommandItem |
add(IUID cmdID,
Object index)
Adds a new command to this commandbar. |
ICommandItem |
createMacroItem(String name,
Object faceID,
String action,
Object index)
Creates a new macro item on this commandbar at the specified position. |
ICommandBar |
createMenu(String name,
Object index)
Creates a new blank menu on this commandbar at the specified position. |
void |
delete()
Removes this object from the commandbar. |
void |
dock(int dockFlags,
ICommandBar referenceBar)
Docks or undocks this commandbar. |
boolean |
equals(Object o)
Compare this object with another |
void |
execute()
Causes the command to execute. |
ICommandItem |
find(Object identifier,
boolean noRecurse)
Finds a command on this commandbar. |
String |
getAction()
The name of the VBA macro this command should run when pressed. |
String |
getCaption()
The caption of this command item. |
String |
getCategory()
The name of the category with which this command item is associated. |
ICommand |
getCommand()
A reference to the internal command object. |
int |
getCount()
The number of items contained within this commandbar. |
Object |
getFaceID()
The bitmap that is used as the icon on this command item. |
int |
getHeight()
The height of the window. |
int |
getHelpContextID()
The help context ID associated with this command item. |
String |
getHelpFile()
The help file associated with this command item. |
IUID |
getID()
The unique integer ID associated with this command item. |
int |
getIndex()
The positional index of this command item within its menu or toolbar. |
ICommandItem |
getItem(int index)
The command item on this commandbar at the specified index. |
int |
getLeft()
The distance between the internal left edge of the window and screen. |
String |
getMessage()
The status bar message for this command item. |
String |
getName()
The name of this command item. |
ICommandBar |
getParent()
The menu or toolbar that this command item currently resides on. |
int |
getState()
The state of the window. |
int |
getStyle()
The display style of this command item. |
String |
getTag()
The tag for this command item. |
String |
getTooltip()
The tooltip for this command item. |
int |
getTop()
The distance between the internal top edge of the window and screen. |
int |
getType()
The type of this command item. |
int |
getWidth()
The width of the window. |
int |
hashCode()
the hashcode for this object |
boolean |
isBuiltIn()
Indicates whether this command item is built-in or if it was implemented through VBA. |
boolean |
isGroup()
Indicates if this command item begins a menu or toolbar group. |
boolean |
isVisible()
Indicates if this commandbar is visible. |
void |
move(int left,
int top,
int width,
int height)
Moves and optionally resizes the windows in a single function. |
ICommandItem |
popup(int x,
int y)
Displays this commandbar as a popup menu at the specified location. |
void |
refresh()
Causes the command to be redrawn. |
void |
reset()
Restores this command item's properties to that of the original. |
void |
setAction(String macro)
The name of the VBA macro this command should run when pressed. |
void |
setCaption(String name)
The caption of this command item. |
void |
setFaceID(Object faceID)
The bitmap that is used as the icon on this command item. |
void |
setGroup(boolean group)
Indicates if this command item begins a menu or toolbar group. |
void |
setHeight(int height)
The height of the window. |
void |
setHelpContextID(int contextID)
The help context ID associated with this command item. |
void |
setHelpFile(String helpFile)
The help file associated with this command item. |
void |
setLeft(int left)
The distance between the internal left edge of the window and screen. |
void |
setMessage(String message)
The status bar message for this command item. |
void |
setName(String name)
The name of this command item. |
void |
setState(int windowState)
The state of the window. |
void |
setStyle(int style)
The display style of this command item. |
void |
setTag(String tag)
The tag for this command item. |
void |
setTooltip(String tooltip)
The tooltip for this command item. |
void |
setTop(int top)
The distance between the internal top edge of the window and screen. |
void |
setWidth(int width)
The width of the window. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public CommandBar(Object obj) throws IOException
obj
to CommandBar
. *
CommandBar o = (CommandBar)obj; // will not work
CommandBar o = new CommandBar(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
CommandBar theCommandBar = (CommandBar) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getAction() throws IOException, AutomationException
Action is a string representing the full name of the VBA macro that is to be executed when the command item is clicked. The name of the macro must include the name of the VBA project in which this macro is located.
Here are some examples of the syntax of the value for the Action property.
Macro called MyMacro in ThisDocument in Normal template:
"Normal.ThisDocument.MyMacro"
Macro called MyMacro in Module1 in Normal template:
"Normal.Module1.MyMacro"
Macro called MyMacro in ThisDocument in the current document:
"Project.ThisDocument.MyMacro"
Macro called MyMacro in Module1 in the current document:
"Project.Module1.MyMacro"
Macro called MyMacro in ThisDocument in a base template:
"TemplateProject.ThisDocument.MyMacro"
Macro called MyMacro in Module1 in a base template:
"TemplateProject.Module1.MyMacro"
Note: This property only applies to macro items.
getAction
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAction(String macro) throws IOException, AutomationException
setAction
in interface ICommandItem
macro
- The macro (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBuiltIn() throws IOException, AutomationException
Returns True if the command is a COM command that was created by implementing ICommand and compiling into a DLL. Returns False if the command is a UIControl or a VBA macro.
isBuiltIn
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCategory() throws IOException, AutomationException
Category is a string that represents the category of the command on which this command item is based. The category determines where the command will appear in the Commands panel of the Customize dialog.
getCategory
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommand getCommand() throws IOException, AutomationException
Returns a reference to the command (Button, Tool, ToolControl, or MultiItem) on which this command item is based.
getCommand
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommand
public void delete() throws IOException, AutomationException
When you delete a commanditem from a commandbar it is not deleted from the application; it is just removed from the commandbar. You can always add that command back to a commandbar.
delete
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFaceID(Object faceID) throws IOException, AutomationException
setFaceID
in interface ICommandItem
faceID
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getFaceID() throws IOException, AutomationException
The values for FaceID from the built-in icon palette are:
You can also use your own bitmap (.bmp file) with ICommandItem::FaceID. To use your own bitmap, you could create a UserForm in VBA with a Image control on it. Set the Picture property of the Image control to your bitmap.
If you are using your own bitmap, it must be a Bitmap file (.bmp); Icon files (.ico) are not supported. Bitmap files should be 16 X 16 pixels. The color of the upper left pixel of the bitmap is treated as the transparent color. For example, if the upper left pixel of the bitmap is red, then all of the red pixels in the bitmap will be converted to transparent.
getFaceID
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGroup(boolean group) throws IOException, AutomationException
setGroup
in interface ICommandItem
group
- The group (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isGroup() throws IOException, AutomationException
If Group is set to True, the command item is the first item in a group on a toolbar or menu. There will be a separator bar to the left of the command item. If Group is set to False, the command item does not have a separator bar to the left of it.
isGroup
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHelpFile() throws IOException, AutomationException
You cannot set HelpFile for built-in commands. It is not implemented for macro items and UIControls.
getHelpFile
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHelpFile(String helpFile) throws IOException, AutomationException
setHelpFile
in interface ICommandItem
helpFile
- The helpFile (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHelpContextID() throws IOException, AutomationException
You cannot set HelpContextID for built-in commands. It is not implemented for macro items and UIControls.
getHelpContextID
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHelpContextID(int contextID) throws IOException, AutomationException
setHelpContextID
in interface ICommandItem
contextID
- The contextID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getID() throws IOException, AutomationException
getID
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID
public int getIndex() throws IOException, AutomationException
getIndex
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
Returns the programmatic identifying name string for the command on which this command item is based. Note, this is usually different from the Caption property of a the command.
You can modify Name for VBA macro items but not built-in commands and UIControls. Setting this property for a built-in command or UIControls will return "This method cannot be called on built in commands" run-time error.
getName
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
Returns the programmatic identifying name string for the command on which this command item is based. Note, this is usually different from the Caption property of a the command.
setName
in interface ICommandItem
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCaption(String name) throws IOException, AutomationException
setCaption
in interface ICommandItem
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCaption() throws IOException, AutomationException
The Caption property of a command item is a string that appears when the command item is placed on a menu or when the command item's display style property is set to Text Only or Image and Text.
getCaption
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandBar getParent() throws IOException, AutomationException
Returns a reference to the CommandBar that this command item is on.
getParent
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommandBar
public void reset() throws IOException, AutomationException
reset
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStyle() throws IOException, AutomationException
The Style of a command item determines whether the command item is displayed on a command bar using its caption, image or both. Refer to the esriCommandStyles constants topic for the values for Style.
When a command is put on a toolbar, the command is displayed with the bitmap only by default; the display type is set to Image Only (Style = esriCommandStyleIconOnly).
When a command is put on a menu, the command is displayed with the bitmap and caption by default; the display type is set to Image and Text (Style = esriCommandStyleIconAndText).
However, if the Bitmap property (ICommand::Bitmap) is not set for this command, then the command will be displayed with the caption only by default when it is put on a toolbar or menu; the display type is set to Text Only (Style = esriCommandStyleTextOnly).
getStyle
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriCommandStyles
public void setStyle(int style) throws IOException, AutomationException
setStyle
in interface ICommandItem
style
- A com.esri.arcgis.systemUI.esriCommandStyles constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriCommandStyles
public String getTag() throws IOException, AutomationException
getTag
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTag(String tag) throws IOException, AutomationException
setTag
in interface ICommandItem
tag
- The tag (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTooltip() throws IOException, AutomationException
Tooltip is a string that appears in the screen tip when the mouse hovers over the command item.
You can modify Tooltip for VBA macro items but not built-in commands and UIControls. Setting this property for a built-in command or UIControls will return "This method cannot be called on built in commands" run-time error.
getTooltip
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTooltip(String tooltip) throws IOException, AutomationException
setTooltip
in interface ICommandItem
tooltip
- The tooltip (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getType() throws IOException, AutomationException
Returns the type of this command item using the esriCommandTypes constants. The command item can be one of the following types:
getType
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriCommandTypes
public String getMessage() throws IOException, AutomationException
Message is a string that appears as the message in the statusbar of the application when the mouse passes over the command item.
You can modify Message for VBA macro items but not built-in commands and UIControls. Setting this property for a built-in command or UIControls will return "This method cannot be called on built in commands" run-time error.
getMessage
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMessage(String message) throws IOException, AutomationException
setMessage
in interface ICommandItem
message
- The message (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void execute() throws IOException, AutomationException
execute
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh() throws IOException, AutomationException
Causes the command item to be redrawn on the CommandBar in order to correctly display any new property changes.
It is generally unnecessary to explicitly call Refresh; CommandItem updates such as setting the caption, image, and style all automatically call Refresh.
refresh
in interface ICommandItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandItem add(IUID cmdID, Object index) throws IOException, AutomationException
cmdID specifies the unique identifier of the command that is to be added to the commandbar.
Index specifies the postion on the commandbar at which this item is to be added. [Optional]
In VBA, you can use the built-in ArcID module to find the unique identifier for a particular command or commandbar.
add
in interface ICommandBar
cmdID
- A reference to a com.esri.arcgis.system.IUID (in)index
- A Variant (in, optional, pass null if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID
,
ICommandItem
public ICommandBar createMenu(String name, Object index) throws IOException, AutomationException
Name is a string representing the caption of the menu. The caption is the string that appears for the menu when it is placed on a commandbar.
Index is a number representing the index location at which this menu is to appear on the commandbar. [Optional]
If you want to create a new menu in a development environment other than VBA, you should implement IMenuDef instead of using ICommandBar::CreateMenu.
createMenu
in interface ICommandBar
name
- The name (in)index
- A Variant (in, optional, pass null if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandItem createMacroItem(String name, Object faceID, String action, Object index) throws IOException, AutomationException
Name is a string representing the caption of the macro item. The caption is the string that appears when the macro item is placed on a menu.
FaceID specifies the image to be used for the button when the macro item is on a toolbar. Use either an index number of an icon in the built-in icon palette or the picture property of an Image control on a UserForm. [Optional]
Action is a string representing the full name of the VBA macro that is to be executed when the macro item is clicked. The name of the macro must include the name of the VBA project in which this macro is located. [Optional]
Index is a number representing the index location at which this macro item is to appear on the commandbar. [Optional]
The values for FaceID using the built-in icon palette are:
Here are some examples of the syntax of the Action parameter.
Macro called MyMacro in ThisDocument in Normal template:
"Normal.ThisDocument.MyMacro"
Macro called MyMacro in Module1 in Normal template:
"Normal.Module1.MyMacro"
Macro called MyMacro in ThisDocument in the current document:
"Project.ThisDocument.MyMacro"
Macro called MyMacro in Module1 in the current document:
"Project.Module1.MyMacro"
Macro called MyMacro in ThisDocument in a base template:
"TemplateProject.ThisDocument.MyMacro"
Macro called MyMacro in Module1 in a base template:
"TemplateProject.Module1.MyMacro"
Note: Macros must be Public Subs. Private Subs are not treated as macros.
createMacroItem
in interface ICommandBar
name
- The name (in)faceID
- A Variant (in, optional, pass null if not required)action
- The action (in, optional, pass null if not required)index
- A Variant (in, optional, pass null if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommandItem
public int getCount() throws IOException, AutomationException
getCount
in interface ICommandBar
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandItem find(Object identifier, boolean noRecurse) throws IOException, AutomationException
identifier is the unique identifier of the item you want to find. For built-in commands and commandbars, use the UID. For VBA macros and UIControls use the name.
noRecurse Use False to do a recursive search for the item; otherwise use True. [Optional]
Here is the syntax that can be used for identifier for each type of menu or command item that can be on the command bar.
Built-in commands and menus
Use the unique identifier (UID) of the command or menu. The
built-in Normal.ArcID module can be used to find the UID's.
pCommandBar.Find(ArcID.Edit_Menu)
pCommandBar.Find(ArcID.File_AddData)
Instead of using the ArcID module, you can write your own code
to get the UID of the
object.
To find the CLSID, ProgID, and subtype of an ESRI command or menu, refer to the following technical documents:
ArcObjects Developer Help > Technical Documents > ArcMap: Names and IDs of commands and commandbars
ArcObjects Developer Help > Technical Documents > ArcCatalog: Names and IDs of commands and commandbars
Custom VBA menus
Use a string that represents the full name of the custom menu. The name of the menu must include the project or template in which this menu was created.
pCommandBar.Find("Normal.New Menu")
pCommandBar.Find("Project.New Menu")
pCommandBar.Find("Project.New Menu 1")
When you create new menus using the Customize dialog, the first menu you create is named "New Menu", the second menu you create is called "New Menu 1", etc... In the Find method, you need to use the default name of the menu instead of the caption you assigned to it. Here is an example of how custom menu naming works.
1st menu created in Normal: "Normal.New Menu"
2nd menu created in Normal: "Normal.New Menu
1"
3rd menu created in Normal: "Normal.New Menu
2"
1st menu created in the current document: "Project.New
Menu"
2nd menu created in the current document: "Project.New
Menu 1"
3rd menu created in the current document: "Project.New
Menu 2"
etc...
If you write code to create a new menu, then the name of that item will be prefixed by the project or template in which the module was located.
UIControls
Use a string that represents the full name of the UIControl. The name of the UIControl must include the project or template in which this UIControl was created.
pCommandBar.Find("Normal.UIButtonControl1")
pCommandBar.Find("Project.UIToolControl1")
pCommandBar.Find("TemplateProject.UICombboxControl1")
Macro Items
Use a string that represents the full name of the VBA macro. The name of the macro must include the name of the VBA project and module in which this macro is located. Only Macros that are placed on a toolbar or menu can be found using CommandBars.Find.
pCommandBar.Find("Project.NewMacros.Test")
pCommandBar.Find("Normal.ThisDocument.MyMacro")
Custom commands and menus
Use the unique identifier (UID) of your custom command or menu.
You can create a UID object and set the value of the UID to the CLSID or ProgID of your custom object.
For your custom objects, the ProgID is a string composed of the name of your project used to make the command and the class name of the command.
For example if you have a Visual Basic project called MyCustomTools and there is a class module for your command called cmdMyZoomTool in that project, then the ProgID for this command would be "MyCustomTools.cmdMyZoomTool".
To find the CLSID for this command, you could search the system registry for ProgID. Note, if you have a command that is a subtype then you also have to set the SubType property on IUID to the subtype value.
find
in interface ICommandBar
identifier
- A Variant (in)noRecurse
- The noRecurse (in, optional, pass false if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommandItem
public ICommandItem getItem(int index) throws IOException, AutomationException
getItem
in interface ICommandBar
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandItem popup(int x, int y) throws IOException, AutomationException
X is the X coordinate, in device units, of the point on the application where the commandbar should be displayed. Applies to menus and shortcut menus only. [Optional]
Y is the Y coordinate, in device units, of the point on the application where the commandbar should be displayed. Applies to menus and shortcut menus only. [Optional]
popup
in interface ICommandBar
x
- The x (in, optional, pass 0 if not required)y
- The y (in, optional, pass 0 if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICommandItem
public void dock(int dockFlags, ICommandBar referenceBar) throws IOException, AutomationException
dockFlags specifies whether the commandbar is docked or where it is docked. Use one of the esriDockFlags constants.
referenceBar is an ICommandBar object that is to be used as a location reference. [Optional]
dock
in interface ICommandBar
dockFlags
- A com.esri.arcgis.framework.esriDockFlags constant (in)referenceBar
- A reference to a com.esri.arcgis.framework.ICommandBar (in, optional, pass null if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriDockFlags
public boolean isVisible() throws IOException, AutomationException
isVisible
in interface ICommandBar
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLeft(int left) throws IOException, AutomationException
setLeft
in interface IWindowPosition
left
- The left (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLeft() throws IOException, AutomationException
The Left property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getLeft
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTop(int top) throws IOException, AutomationException
setTop
in interface IWindowPosition
top
- The top (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTop() throws IOException, AutomationException
The Top property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getTop
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWidth(int width) throws IOException, AutomationException
setWidth
in interface IWindowPosition
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getWidth
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeight(int height) throws IOException, AutomationException
setHeight
in interface IWindowPosition
height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getHeight
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void move(int left, int top, int width, int height) throws IOException, AutomationException
You can use the Move method to set the Left, Top, Width, and Height properties all at the same time.
move
in interface IWindowPosition
left
- The left (in)top
- The top (in)width
- The width (in, optional, pass 0 if not required)height
- The height (in, optional, pass 0 if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setState(int windowState) throws IOException, AutomationException
setState
in interface IWindowPosition
windowState
- A com.esri.arcgis.framework.esriWindowState constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getState() throws IOException, AutomationException
The State property uses the esriWindowState enumeration to specify whether the window is normal, minimized, or maximized.
getState
in interface IWindowPosition
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 |