Window Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
For internal use only.
Inheritance Hierarchy

SystemObject
  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

public class Window

The Window type exposes the following members.

Constructors

  NameDescription
Public methodWindow
Constructs a new instance of this class for the specified Window Handle.
Top
Properties

  NameDescription
Public propertyAllChildren
Gets a collection of all child windows (at any level) of this window.
Public propertyCaption
Gets the window's caption.
Public propertyClassName
Gets the window's class name.
Public propertyEnabled
Gets whether this window is enabled or not.
Public propertyExists
Gets whether the window handle represents a live native window.
Public propertyHandle
Gets the handle of the window.
Public propertyIsDialog
Gets whether this Window is a dialog
Public propertyIsForegroundWindow
Gets whether the window is currently in use by the user.
Public propertyIsMaximized
Gets whether the window is maximized.
Public propertyIsMinimized
Gets whether the window is minimized.
Public propertyIsVisible
Gets whether the window is visible.
Public propertyLocation
Gets the top left point of the location of the window relative to the screen.
Public propertyOwnerProcess
The owner process that created this window.
Public propertyParentWindow
Get parent window of this window. Returns null if there is no parent window.
Public propertyRectangle
Gets the rectangle of the window.
Public propertySize
Gets the size of the window.
Top
Methods

  NameDescription
Public methodAttachWrappedWindow
Attach to the wrapper window handle. This call is needed to allow for events to fire on this window.
Public methodCenter
Get the center point of this window
Public methodClose
Close the window.
Public methodContainsControl
Returns true/false whether the Win32 control id is a child of this window
Public methodContainsText
Returns true/false whether the text is present within this window.
Public methodDetachWrappedWindow
Detach from the window handle.
Public methodStatic memberEnumHwndAncestors
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBitmap
Returns a bitmap
Public methodGetBitmap(RectangleF)
Returns a bitmap of a specified target area within this window.
Public methodGetBitmap(Size)
Capture the entire window bitmap and returns it.
Public methodGetHashCode
The hash code is the window's hwnd.
(Overrides ObjectGetHashCode.)
Public methodGetText
Get the text contained in this window and all its children windows.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWindowText
Get current text of the window.
Public methodHide
Hide the window.
Public methodStatic memberIsHwndDialog
Gets whether the provided window handle represents a dialog
Public methodMakeAbsolute
Return the absolute coordinate of the relative rectangle.
Public methodMakeRelative
Make the absolute rects passed in relative to this window.
Public methodMaximize
Maximize the window
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMinimize
Minimize the window.
Public methodMove
Move this window to a new location
Protected methodOnClick
For internal use only.
Protected methodOnDoubleClick
For internal use only.
Protected methodOnKeyDown
For internal use only.
Protected methodOnKeyPressed
For internal use only.
Protected methodOnKeyUp
For internal use only.
Protected methodOnMouseClick(MouseEventArgs)
For internal use only.
Protected methodOnMouseClick(MouseButtons, Int32, Int32, Int32)
For internal use only.
Protected methodOnMouseDoubleClick
For internal use only.
Protected methodOnMouseDown(MouseEventArgs)
For internal use only.
Protected methodOnMouseDown(MouseButtons, Int32, Int32)
For internal use only.
Protected methodOnMouseMove
For internal use only.
Protected methodOnMouseUp(MouseEventArgs)
For internal use only.
Protected methodOnMouseUp(MouseButtons, Int32, Int32)
For internal use only.
Protected methodOnPreMouseClick
For internal use only.
Protected methodOnPreMouseDown
For internal use only.
Protected methodOnPreMouseUp
For internal use only.
Protected methodOnWindowMoved
For internal use only.
Public methodRefreshChildren
Refresh the list of child windows (Window.Children) of this window
Public methodRestore
Restore the window to its default size/location
Public methodSetActive
Set this window to active.
Public methodSetFocus
Restores and Brings the window to the front, assuming it is a visible application window.
Public methodSetPosition
Public methodShow
Show this window and make it visible
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update the window. Invalidates all areas and forces a redraw.
Public methodWaitForVisibility(Boolean, Int32)
Waits for a certain visibility state for a window
Public methodWaitForVisibility(Boolean, Int32, Boolean)
Waits for a certain visibility state for a window
Top
Events

  NameDescription
Public eventClick
For internal use only.
Public eventDoubleClick
For internal use only.
Public eventKeyDown
For internal use only.
Public eventKeyPressed
For internal use only.
Public eventKeyUp
For internal use only.
Public eventMouseClick
For internal use only.
Public eventMouseDoubleClick
For internal use only.
Public eventMouseDown
For internal use only.
Public eventMouseMove
For internal use only.
Public eventMouseUp
For internal use only.
Public eventPreMouseClick
For internal use only.
Public eventPreMouseDown
For internal use only.
Public eventPreMouseUp
For internal use only.
Public eventWindowMoved
For internal use only.
Top
Operators

  NameDescription
Public operatorStatic member(HWND to Window)
Public operatorStatic member(Window to HWND)
Top
See Also

Reference