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