Interface IWindow
A .NET WPF window object.
public interface IWindow : IUiObjectBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportSendKeys, ISupportDragAndDrop, IEnabledProvider, IVisibleProvider, ISupportsNativeObject, ITopLevelObject, ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
IsModal
Indicates whether this window is modal.
bool IsModal { get; }
Property Value
ParentText
The text associated with the parent object of this object.
string ParentText { get; }
Property Value
WindowState
The current window state: maximized, minimized, or normal.
WindowState WindowState { get; }
Property Value
Methods
Activate()
Activates this window.
void Activate()
Activate(MouseButton)
Activates this window using the specified mouse button.
void Activate(MouseButton button)
Parameters
buttonMouseButtonThe mouse button used to click the window.
Close()
Closes this window.
void Close()
Maximize()
Maximizes this window.
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
pointPointAbsolute pixel location on the screen.
Move(int, int)
Moves this window to the specified absolute location on the screen.
void Move(int x, int y)
Parameters
Resize(Size)
Resizes this window to the specified dimensions.
void Resize(Size size)
Parameters
sizeSizeThe size in pixels.
Resize(int, int)
Resizes this window to the specified dimensions.
void Resize(int width, int height)
Parameters
Restore()
Restores this window to its previous size.
void Restore()