Table of Contents

Interface IWindow

Namespace
HP.LFT.SDK.WinForms
Assembly
HP.LFT.SDK.dll

A .NET Windows Forms window.

public interface IWindow : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITopLevelObject, ITestObject, ITestObjectDescriber
Inherited Members
Extension Methods

Properties

HasBorder

Indicates whether this object has a thin-line border.

bool HasBorder { get; }

Property Value

bool

HasCaption

Indicates whether this object has a title bar.

bool HasCaption { get; }

Property Value

bool

HasSizebox

Indicates whether this object has a sizing border.

bool HasSizebox { get; }

Property Value

bool

HasSystemMenu

Indicates whether this object has a window menu on its title bar.

bool HasSystemMenu { get; }

Property Value

bool

IsActive

Indicates whether this object is the foreground object (currently active).

bool IsActive { get; }

Property Value

bool

IsMaximizable

Indicates whether this window can be maximized.

bool IsMaximizable { get; }

Property Value

bool

IsMdiChildWindow

Indicates whether this object is a multiple-document interface (MDI) child window.

bool IsMdiChildWindow { get; }

Property Value

bool

IsMinimizable

Indicates whether this object can be minimized.

bool IsMinimizable { get; }

Property Value

bool

IsPopupWindow

Indicates whether this object is a pop-up window.

bool IsPopupWindow { get; }

Property Value

bool

IsToolWindow

Indicates whether this object is a floating toolbar.

bool IsToolWindow { get; }

Property Value

bool

IsTopmost

Indicates whether this object stays above all non-topmost windows even when the object is deactivated.

bool IsTopmost { get; }

Property Value

bool

WindowState

The current window state. Possible values: WindowState

WindowState WindowState { get; }

Property Value

WindowState

Methods

Activate()

Activates this window.

void Activate()

Activate(MouseButton)

Activates this window using the specified mouse button.

void Activate(MouseButton button)

Parameters

button MouseButton

The mouse button used to click this window.

Close()

Closes this window.

void Close()

Maximize()

Maximizes this window to fill screen.

void Maximize()

Minimize()

Minimizes this window to an icon.

void Minimize()

Move(Point)

Moves this window to the specified absolute location on the screen.

void Move(Point point)

Parameters

point Point

Absolute pixel location (X,Y) on the screen

Move(int, int)

Moves this window to the specified absolute location on the screen.

void Move(int x, int y)

Parameters

x int

The X coordinate in pixels.

y int

The Y coordinate in pixels.

Resize(Size)

Resizes this window.

void Resize(Size size)

Parameters

size Size

The new size in pixels.

Resize(int, int)

Resizes this window.

void Resize(int width, int height)

Parameters

width int

The new width in pixels.

height int

The new height in pixels.

Restore()

Restores this window to its previous size.

void Restore()