Interface IWindow
A .NET WPF window object.
Inherited Members
Namespace: HP.LFT.SDK.WPF
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindow : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITopLevelObject, ITestObject, ITestObjectDescriber
Properties
IsModal
Indicates whether this window is modal.
Declaration
bool IsModal { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ParentText
The text associated with the parent object of this object.
Declaration
string ParentText { get; }
Property Value
| Type | Description |
|---|---|
| string |
WindowState
The current window state: maximized, minimized, or normal.
Declaration
WindowState WindowState { get; }
Property Value
| Type | Description |
|---|---|
| WindowState |
Methods
Activate()
Activates this window.
Declaration
void Activate()
Activate(MouseButton)
Activates this 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. |
Close()
Closes this window.
Declaration
void Close()
Maximize()
Maximizes this window.
Declaration
void Maximize()
Minimize()
Minimizes this window to an icon.
Declaration
void Minimize()
Move(Point)
Moves this window to the specified absolute location on the screen.
Declaration
void Move(Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point | Absolute pixel location on the screen. |
Move(int, int)
Moves this window to the specified absolute location on the screen.
Declaration
void Move(int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| int | x | In pixels. |
| int | y | In pixels. |
Resize(Size)
Resizes this window to the specified dimensions.
Declaration
void Resize(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | The size in pixels. |
Resize(int, int)
Resizes this window to the specified dimensions.
Declaration
void Resize(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | In pixels. |
| int | height | In pixels. |
Restore()
Restores this window to its previous size.
Declaration
void Restore()