Interface IWindowPattern
The methods and properties used to interact with a window control.
Namespace: HP.LFT.SDK.UIAPro
Assembly: HP.LFT.SDK.dll
Syntax
public interface IWindowPattern
Properties
CanMaximize
Indicates whether the UIA Pro element can be maximized.
Declaration
bool CanMaximize { get; }
Property Value
| Type | Description |
|---|---|
| bool |
CanMinimize
Indicates whether the UIA Pro element can be minimized.
Declaration
bool CanMinimize { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMaximized
Indicates whether the UIA Pro visual state is Maximized
Declaration
bool IsMaximized { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMinimized
Indicates whether the UIA Pro visual state is Minimized
Declaration
bool IsMinimized { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsModal
Indicates whether the UIA Pro element is modal.
Declaration
bool IsModal { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsTopmost
Indicates whether the UIA Pro element is the topmost element in the z-order.
Declaration
bool IsTopmost { get; }
Property Value
| Type | Description |
|---|---|
| bool |
WindowInteractionState
The WindowInteractionState of the UIA Pro element.
Declaration
WindowInteractionState WindowInteractionState { get; }
Property Value
| Type | Description |
|---|---|
| WindowInteractionState |
WindowVisualState
Gets the WindowVisualState of the UIA Pro element.
Declaration
WindowVisualState WindowVisualState { get; }
Property Value
| Type | Description |
|---|---|
| WindowVisualState |
Methods
Close()
Attempts to close the current window.
Declaration
void Close()
Maximize()
Sets the window visual state to Maximized
Declaration
void Maximize()
Minimize()
Sets the window visual state to Minimized
Declaration
void Minimize()
Restore()
Sets the window visual state to Normal
Declaration
void Restore()
TryWaitForInputIdle(int)
Waits until the object is ready for input or the timeout expires. Note: This method is not supported when you enable the legacy UIA Pro Add-in. Returns True if the window is ready for input, False if the timeout expired.
Declaration
bool TryWaitForInputIdle(int milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| int | milliseconds | The number of milliseconds to wait for the object to become ready. The maximum is MaxValue. |
Returns
| Type | Description |
|---|---|
| bool |
WaitForInputIdle(int)
Waits until the object is ready for input or the timeout expires. Note: This method is only supported when you enable the legacy UIA Pro Add-in.
Declaration
[Obsolete]
void WaitForInputIdle(int milliseconds)
Parameters
| Type | Name | Description |
|---|---|---|
| int | milliseconds | The number of milliseconds to wait for the object to become ready. The maximum is MaxValue. |