Table of Contents

Interface IWindowPattern

Namespace
HP.LFT.SDK.UIAPro
Assembly
HP.LFT.SDK.dll

The methods and properties used to interact with a window control.

public interface IWindowPattern

Properties

CanMaximize

Indicates whether the UIA Pro element can be maximized.

bool CanMaximize { get; }

Property Value

bool

CanMinimize

Indicates whether the UIA Pro element can be minimized.

bool CanMinimize { get; }

Property Value

bool

IsMaximized

Indicates whether the UIA Pro visual state is Maximized

bool IsMaximized { get; }

Property Value

bool

IsMinimized

Indicates whether the UIA Pro visual state is Minimized

bool IsMinimized { get; }

Property Value

bool

IsModal

Indicates whether the UIA Pro element is modal.

bool IsModal { get; }

Property Value

bool

IsTopmost

Indicates whether the UIA Pro element is the topmost element in the z-order.

bool IsTopmost { get; }

Property Value

bool

WindowInteractionState

The WindowInteractionState of the UIA Pro element.

WindowInteractionState WindowInteractionState { get; }

Property Value

WindowInteractionState

WindowVisualState

Gets the WindowVisualState of the UIA Pro element.

WindowVisualState WindowVisualState { get; }

Property Value

WindowVisualState

Methods

Close()

Attempts to close the current window.

void Close()

Maximize()

Sets the window visual state to Maximized

void Maximize()

Minimize()

Sets the window visual state to Minimized

void Minimize()

Restore()

Sets the window visual state to Normal

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.

bool TryWaitForInputIdle(int milliseconds)

Parameters

milliseconds int

The number of milliseconds to wait for the object to become ready. The maximum is MaxValue.

Returns

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.

[Obsolete("Use TryWaitForInputIdle(int) instead.")]
void WaitForInputIdle(int milliseconds)

Parameters

milliseconds int

The number of milliseconds to wait for the object to become ready. The maximum is MaxValue.