Table of Contents

Interface IWindow

A .NET Windows Forms window.

Inherited Members
IUiObjectBase.FireEvent(string, params object[])
IUiObjectBase.GetObjectProperty<TValue>(string)
IUiObjectBase.IsChildWindow
IUiObjectBase.IsOwnedWindow
IUiObjectBase.ObjectName
IUiObjectBase.FullNamePath
IUiObjectBase.FullType
IUiObjectBase.Text
IUiObjectBase.WindowClassRegExp
IUiObjectBase.WindowId
IUiObjectBase.MouseMove(Location)
IUiObjectBase.IsFocused
IUiObjectBase.NativeClass
IUiObjectBase.WindowTitleRegExp
IUiObjectBase.Handle
IClickable.Click(MouseButton)
IClickable.Click(ClickArgs)
IDoubleClickable.DoubleClick(MouseButton)
IDoubleClickable.DoubleClick(ClickArgs)
ILocationInfoProvider.Location
ILocationInfoProvider.AbsoluteLocation
ILocationInfoProvider.Size
ISupportSendKeys.SendKeys(string, KeyModifier)
ISupportSendKeys.SendKeys(string)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop)
ISupportDragAndDrop.DragAndDropOn(ISupportDragAndDrop, DragAndDropArgs)
IEnabledProvider.IsEnabled
IVisibleProvider.IsVisible
ISupportsNativeObject.NativeObject
ITestObject.GetDescription()
ITestObject.SetDescription(IDescription)
ITestObject.FindChildren<TChild>(IDescription)
ITestObject.Exists()
ITestObject.Exists(uint)
ITestObject.GetSnapshot()
ITestObject.Highlight()
ITestObject.HighlightMatches<TChild>(IDescription)
ITestObject.GetTextLocations(string)
ITestObject.GetTextLocations(string, Rectangle)
ITestObject.GetVisibleText()
ITestObject.GetVisibleText(Rectangle)
ITestObject.VerifyImageExists(Image, byte)
ITestObject.VerifyImageMatch(Image, byte, byte)
ITestObject.VerifyImageMatch(Image, ImageMaskArea, byte, byte)
ITestObject.CallFTMethod(string, params object[])
ITestObject.CallFTMethod<TResult>(string, params object[])
ITestObject.Parent
ITestObject.DisplayName
ITestObjectDescriber.Describe<TChild>(IDescription)
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()

Extension Methods

TestObjectExtensions.WaitUntilEnabled<T>(T)
TestObjectExtensions.WaitUntilEnabled<T>(T, int)
TestObjectExtensions.WaitUntilExists<T>(T)
TestObjectExtensions.WaitUntilExists<T>(T, int)
TestObjectExtensions.WaitUntilVisible<T>(T)
TestObjectExtensions.WaitUntilVisible<T>(T, int)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>)
TestObjectExtensions.WaitUntil<T>(T, Func<T, bool>, int)