For internal use only.
Inheritance Hierarchy
ArtOfTest.Common.Win32Window
ArtOfTest.WebAii.Win32Button
Namespace: ArtOfTest.Common.Win32
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The Window type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Window |
Constructs a new instance of this class for
the specified Window Handle.
|
Properties
Name | Description | |
---|---|---|
AllChildren |
Gets a collection of all child windows (at any level) of
this window.
| |
Caption |
Gets the window's caption.
| |
ClassName |
Gets the window's class name.
| |
Enabled |
Gets whether this window is enabled or not.
| |
Exists |
Gets whether the window handle represents a live native window.
| |
Handle |
Gets the handle of the window.
| |
IsDialog |
Gets whether this Window is a dialog
| |
IsForegroundWindow |
Gets whether the window is currently in use by the user.
| |
IsMaximized |
Gets whether the window is maximized.
| |
IsMinimized |
Gets whether the window is minimized.
| |
IsVisible |
Gets whether the window is visible.
| |
Location |
Gets the top left point of the location of the window relative to the screen.
| |
OwnerProcess |
The owner process that created this window.
| |
ParentWindow |
Get parent window of this window. Returns null if there is no parent window.
| |
Rectangle |
Gets the rectangle of the window.
| |
Size |
Gets the size of the window.
|
Methods
Name | Description | |
---|---|---|
AttachWrappedWindow |
Attach to the wrapper window handle. This call is needed to allow
for events to fire on this window.
| |
Center |
Get the center point of this window
| |
Close |
Close the window.
| |
ContainsControl |
Returns true/false whether the Win32 control id is a child
of this window
| |
ContainsText |
Returns true/false whether the text is present within this window.
| |
DetachWrappedWindow |
Detach from the window handle.
| |
EnumHwndAncestors | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBitmap |
Returns a bitmap
| |
GetBitmap(RectangleF) |
Returns a bitmap of a specified target area within this window.
| |
GetBitmap(Size) |
Capture the entire window bitmap and returns it.
| |
GetHashCode |
The hash code is the window's hwnd.
(Overrides ObjectGetHashCode.) | |
GetText |
Get the text contained in this window and all its children windows.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWindowText |
Get current text of the window.
| |
Hide |
Hide the window.
| |
IsHwndDialog |
Gets whether the provided window handle represents a dialog
| |
MakeAbsolute |
Return the absolute coordinate of the relative rectangle.
| |
MakeRelative |
Make the absolute rects passed in relative to this window.
| |
Maximize |
Maximize the window
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Minimize |
Minimize the window.
| |
Move |
Move this window to a new location
| |
OnClick |
For internal use only.
| |
OnDoubleClick |
For internal use only.
| |
OnKeyDown |
For internal use only.
| |
OnKeyPressed |
For internal use only.
| |
OnKeyUp |
For internal use only.
| |
OnMouseClick(MouseEventArgs) |
For internal use only.
| |
OnMouseClick(MouseButtons, Int32, Int32, Int32) |
For internal use only.
| |
OnMouseDoubleClick |
For internal use only.
| |
OnMouseDown(MouseEventArgs) |
For internal use only.
| |
OnMouseDown(MouseButtons, Int32, Int32) |
For internal use only.
| |
OnMouseMove |
For internal use only.
| |
OnMouseUp(MouseEventArgs) |
For internal use only.
| |
OnMouseUp(MouseButtons, Int32, Int32) |
For internal use only.
| |
OnPreMouseClick |
For internal use only.
| |
OnPreMouseDown |
For internal use only.
| |
OnPreMouseUp |
For internal use only.
| |
OnWindowMoved |
For internal use only.
| |
RefreshChildren |
Refresh the list of child windows (Window.Children) of this window
| |
Restore |
Restore the window to its default size/location
| |
SetActive |
Set this window to active.
| |
SetFocus |
Restores and Brings the window to the front,
assuming it is a visible application window.
| |
SetPosition | ||
Show |
Show this window and make it visible
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Update the window. Invalidates all areas and forces a redraw.
| |
WaitForVisibility(Boolean, Int32) |
Waits for a certain visibility state for a window
| |
WaitForVisibility(Boolean, Int32, Boolean) |
Waits for a certain visibility state for a window
|
Events
Name | Description | |
---|---|---|
Click |
For internal use only.
| |
DoubleClick |
For internal use only.
| |
KeyDown |
For internal use only.
| |
KeyPressed |
For internal use only.
| |
KeyUp |
For internal use only.
| |
MouseClick |
For internal use only.
| |
MouseDoubleClick |
For internal use only.
| |
MouseDown |
For internal use only.
| |
MouseMove |
For internal use only.
| |
MouseUp |
For internal use only.
| |
PreMouseClick |
For internal use only.
| |
PreMouseDown |
For internal use only.
| |
PreMouseUp |
For internal use only.
| |
WindowMoved |
For internal use only.
|
Operators
Name | Description | |
---|---|---|
(HWND to Window) | ||
(Window to HWND) |
See Also