Interface IWindow
A .NET Windows Forms window.
Inherited Members
Namespace: HP.LFT.SDK.WinForms
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindow : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITopLevelObject, ITestObject, ITestObjectDescriber
Properties
HasBorder
Indicates whether this object has a thin-line border.
Declaration
bool HasBorder { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasCaption
Indicates whether this object has a title bar.
Declaration
bool HasCaption { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSizebox
Indicates whether this object has a sizing border.
Declaration
bool HasSizebox { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasSystemMenu
Indicates whether this object has a window menu on its title bar.
Declaration
bool HasSystemMenu { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsActive
Indicates whether this object is the foreground object (currently active).
Declaration
bool IsActive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMaximizable
Indicates whether this window can be maximized.
Declaration
bool IsMaximizable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMdiChildWindow
Indicates whether this object is a multiple-document interface (MDI) child window.
Declaration
bool IsMdiChildWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMinimizable
Indicates whether this object can be minimized.
Declaration
bool IsMinimizable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsPopupWindow
Indicates whether this object is a pop-up window.
Declaration
bool IsPopupWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsToolWindow
Indicates whether this object is a floating toolbar.
Declaration
bool IsToolWindow { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsTopmost
Indicates whether this object stays above all non-topmost windows 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 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 this window. |
Close()
Closes this window.
Declaration
void Close()
Maximize()
Maximizes this window to fill screen.
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 (X,Y) 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 | The X coordinate in pixels. |
| int | y | The Y coordinate in pixels. |
Resize(Size)
Resizes this window.
Declaration
void Resize(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | The new size in pixels. |
Resize(int, int)
Resizes this window.
Declaration
void Resize(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The new width in pixels. |
| int | height | The new height in pixels. |
Restore()
Restores this window to its previous size.
Declaration
void Restore()