Interface IWindow
A standard window.
Inherited Members
Namespace: HP.LFT.SDK.StdWin
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindow : IUiObjectWithLayoutInfo, IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ITopLevelObject, ITestObject, ITestObjectDescriber
Properties
HasBorder
Indicates whether the window has a thin-line border.
Declaration
bool HasBorder { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCaption
Indicates whether the window has a title bar.
Declaration
bool HasCaption { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSizebox
Indicates whether the window has a sizing border.
Declaration
bool HasSizebox { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSystemMenu
Indicates whether the window has a window menu on its title bar.
Declaration
bool HasSystemMenu { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsActive
Indicates whether the window is the foreground object (currently active).
Declaration
bool IsActive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsChildWindow
Indicates whether the window is a child window.
Declaration
bool IsChildWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMaximizable
Indicates whether the window can be maximized.
Declaration
bool IsMaximizable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMdiChildWindow
Indicates whether the window is a multiple-document interface (MDI) child window.
Declaration
bool IsMdiChildWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMinimizable
Indicates whether the window can be minimized.
Declaration
bool IsMinimizable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsOwnedWindow
Indicates whether the window has an owner window.
Declaration
bool IsOwnedWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsPopupWindow
Indicates whether the window is a pop-up window.
Declaration
bool IsPopupWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsToolWindow
Indicates whether the window is a tool window (a floating toolbar).
Declaration
bool IsToolWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsTopmost
Indicates whether the window is placed above all non-topmost windows and remains in place, even when the object is deactivated.
Declaration
bool IsTopmost { get; }
Property Value
| Type | Description |
|---|---|
| bool |
WindowState
The current window state. Possible values: WindowState.
Declaration
WindowState WindowState { get; }
Property Value
| Type | Description |
|---|---|
| WindowState |
Methods
Activate()
Activates the window.
Declaration
void Activate()
Activate(MouseButton)
Activates the window using the specified mouse button.
Declaration
void Activate(MouseButton button)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseButton | button | The mouse button used to click the window. Possible values: MouseButton. |
Close()
Closes the window.
Declaration
void Close()
Maximize()
Maximizes the window to fill the entire screen.
Declaration
void Maximize()
Minimize()
Minimizes the window to an icon.
Declaration
void Minimize()
Move(Point)
Moves the window to the specified absolute location on the screen with a Point object.
Declaration
void Move(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point | Absolute pixel location (X,Y) on the screen |
Move(int, int)
Moves the window to the specified absolute location on the screen with X,Y coordinates.
Declaration
void Move(int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | The X coordinate to move to. |
| int | y | The Y coordinate to move to. |
Resize(Size)
Resizes the window to the specified Size.
Declaration
void Resize(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | The size to resize to (in pixels). |
Resize(int, int)
Resizes the window to the specified dimensions by width and height values.
Declaration
void Resize(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | Width value (in pixels). |
| int | height | Height value (in pixels). |
Restore()
Restores the window to its previous size.
Declaration
void Restore()