|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWindowPosition
Provides access to members that query or modify a window's position, size and state.
The IWindowPosition interface has methods to move and resize a window. Any window object can implement this interface. All the ArcGIS application windows implement this interface.
Commandbars also support IWindowPostion. Use the State property to determine whether a toolbar is floating on the desktop.
Method Summary | |
---|---|
int |
getHeight()
The height of the window. |
int |
getLeft()
The distance between the internal left edge of the window and screen. |
int |
getState()
The state of the window. |
int |
getTop()
The distance between the internal top edge of the window and screen. |
int |
getWidth()
The width of the window. |
void |
move(int left,
int top,
int width,
int height)
Moves and optionally resizes the windows in a single function. |
void |
setHeight(int height)
The height of the window. |
void |
setLeft(int left)
The distance between the internal left edge of the window and screen. |
void |
setState(int windowState)
The state of the window. |
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. |
Method Detail |
---|
void setLeft(int left) throws IOException, AutomationException
left
- The left (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTop(int top) throws IOException, AutomationException
top
- The top (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setWidth(int width) throws IOException, AutomationException
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getWidth() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setHeight(int height) throws IOException, AutomationException
height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHeight() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.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.
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.void setState(int windowState) throws IOException, AutomationException
windowState
- A com.esri.arcgis.framework.esriWindowState constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getState() throws IOException, AutomationException
The State property uses the esriWindowState enumeration to specify whether the window is normal, minimized, or maximized.
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 |