Interface IWindow
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
HasCaption
Indicates whether this object has a title bar.
bool HasCaption { get; }
Property Value
HasSizebox
Indicates whether this object has a sizing border.
bool HasSizebox { get; }
Property Value
HasSystemMenu
Indicates whether this object has a window menu on its title bar.
bool HasSystemMenu { get; }
Property Value
IsActive
Indicates whether this object is the foreground object (currently active).
bool IsActive { get; }
Property Value
IsMaximizable
Indicates whether this window can be maximized.
bool IsMaximizable { get; }
Property Value
IsMdiChildWindow
Indicates whether this object is a multiple-document interface (MDI) child window.
bool IsMdiChildWindow { get; }
Property Value
IsMinimizable
Indicates whether this object can be minimized.
bool IsMinimizable { get; }
Property Value
IsPopupWindow
Indicates whether this object is a pop-up window.
bool IsPopupWindow { get; }
Property Value
IsToolWindow
Indicates whether this object is a floating toolbar.
bool IsToolWindow { get; }
Property Value
IsTopmost
Indicates whether this object stays above all non-topmost windows even when the object is deactivated.
bool IsTopmost { get; }
Property Value
WindowState
The current window state. Possible values: WindowState
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 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
pointPointAbsolute 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
Resize(Size)
Resizes this window.
void Resize(Size size)
Parameters
sizeSizeThe new size in pixels.
Resize(int, int)
Resizes this window.
void Resize(int width, int height)
Parameters
Restore()
Restores this window to its previous size.
void Restore()