UtilUIAutomation Class

Contains related UI automation utilities.

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilUIAutomation
Inheritance
Object    UtilUIAutomation

Methods

AppendText Appends text at the end of an Edit control.
CaretCreate(Control, Int32, Int32) Create a new caret for the specified control.
CaretCreate(IWin32Window, Int32, Int32) Create a new caret for the specified window.
CaretCreate(Control, Bitmap, Int32, Int32) Create a new caret from an image for the specified control.
CaretCreate(IWin32Window, Bitmap, Int32, Int32) Create a new caret from an image for the specified window.
CaretDestroy Destroys the caret.
CaretHide(Control) Hide the caret of the specified control.
CaretHide(IWin32Window) Hide the caret of the specified window.
CaretShow(Control) Shows the caret of the specified control.
CaretShow(IWin32Window) Shows the caret of the specified window.
DisableDrawing Disables drawing on the specified window or control.
EnableDrawing Enabled drawing on the specified window or control.
EnumerateChildWindows(IntPtr) Enumerates the child windows of the specified window.
EnumerateChildWindows(SafeHandle) Enumerates the child windows of the specified window.
EnumerateWindows Enumerates the top-level windows on the screen.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
ExitThread(IntPtr, UInt32) Terminates the execution of the specified thread.
ExitThread(SafeAccessTokenHandle, UInt32) Terminates the execution of the specified thread.
FlashWindow(IntPtr, FlashWindowFlags, UInt32, UInt32) Flashes a Window and/or it's button in the TaskBar.

It does not change the active state of the window.

FlashWindow(IWin32Window, FlashWindowFlags, UInt32, UInt32) Flashes a Window and/or it's button in the TaskBar.

It does not change the active state of the window.

GetHashCode Serves as the default hash function.
(Inherited from Object)
GetScrollbars(Control) Gets a value indicating which are the visible ScrollBars of a Control.
GetScrollbars(IWin32Window) Gets a value indicating which are the visible ScrollBars of a Window.
GetTitlebarText Gets the titlebar's text of the specified window.
GetToolbarButtons Gets the buttons of a Toolbar control (a window with "ToolbarWin32" class name).
GetType Gets the Type of the current instance.
(Inherited from Object)
GetVerticalScrollPosition(Control) Gets the position of the Vertical scrollbar's scroll in a Control.
GetVerticalScrollPosition(IWin32Window) Gets the position of the Vertical scrollbar's scroll in a window.
GetWindowText(IntPtr) Gets the text of an Edit control.
GetWindowText(SafeHandle) Gets the text of an Edit control.
HideScrollBar(Control, ScrollBars) Hides the specified scrollbar of a Control.
HideScrollBar(IWin32Window, ScrollBars) Hides the specified scrollbar of a window.
InsertText Inserts text at the specified position of an Edit control.
IsHorizontalScrollVisible(Control) Determines whether an Horizontal Scrollbar its shown in a Control.
IsHorizontalScrollVisible(IWin32Window) Determines whether an Horizontal Scrollbar its shown in a window.
IsVerticalScrollVisible(Control) Determines whether a Vertical Scrollbar its shown in a Control.
IsVerticalScrollVisible(IWin32Window) Determines whether a Vertical Scrollbar its shown in a window.
IsWindowTotallyVisible(IntPtr) Determines whether the specified window is totally visible on the screen; this means the window is not obscured by other windows and is not off screen.
IsWindowTotallyVisible(Process) Determines whether the main window of the specified process is totally visible on the screen; this means the window is not obscured by other windows and is not off screen.
IsWindowVisible(IntPtr) Determines whether the specified window is visible on the screen (partially obscured by other windows or not).
IsWindowVisible(Process) Determines whether the main window of the specified process is visible on the screen (partially obscured by other windows or not).
MoveHorizontalScrollbar Performs a scroll up or down on the specified scrollbar control.
MoveLineScroll Moves the specified line scroll of an EDIT control.
MoveVerticalScrollbar Performs a scroll up or down on the specified scrollbar control.
MoveWindow(IntPtr, Point) Moves the specified window.
MoveWindow(IntPtr, Screen) Moves the specified window to the specified screen.
MoveWindow(IWin32Window, Point) Moves the specified window.
MoveWindow(IWin32Window, Screen) Moves the specified window to the specified screen.
MoveWindow(Process, Point) Moves the main window of the specified process.
MoveWindow(Process, Screen) Moves the main window of the specified process to the specified screen.
PauseProcess(Int32) Pauses the execution of all the threads of the specified process.
PauseProcess(Process) Pauses the execution of all the threads of the specified process.
PauseThread(Int32) Pauses the execution of the specified thread.
PauseThread(ProcessThread) Pauses the execution of the specified thread.
ResizeWindow(IntPtr, Size) Resizes the specified window.
ResizeWindow(IWin32Window, Size) Resizes the specified window.
ResizeWindow(Process, Size) Resizes the main window of the specified process.
ResumeProcess Resumes the execution of all the threads for the specified process.
ResumeThread(IntPtr) Resumes the execution of the specified thread.
ResumeThread(SafeAccessTokenHandle) Resumes the execution of the specified thread.
SetCaretBlinkTime Set the blinking time of the caret.
SetCaretPosition Set the position of the caret.
SetWindowOpacity(IntPtr, Int32) Sets the opacity of the specified window.
SetWindowOpacity(IWin32Window, Int32) Sets the opacity of the specified window.
SetWindowPos(IntPtr, Int32, Int32) Sets the position of a window.
SetWindowPos(IWin32Window, Int32, Int32) Sets the position of a window.
SetWindowState(Int32, ProcessWindowStyle) Set the visibility state of a window.
SetWindowState(IntPtr, ProcessWindowStyle) Set the visibility state of a window.
SetWindowState(Process, ProcessWindowStyle) Set the visibility state of a window.
SetWindowText(IntPtr, String) Sets the text of an Edit control.
SetWindowText(SafeHandle, String) Sets the text of an Edit control.
ShowScrollBar(Control, ScrollBars) Shows the specified scrollbar of a Control.
ShowScrollBar(IWin32Window, ScrollBars) Shows the specified scrollbar of a window.
SliceWindowPosition(IntPtr, Point) Slices the position of the specified WINDOW.
SliceWindowPosition(IWin32Window, Point) Slices the position of the specified window.
SliceWindowPosition(Process, Point) Slices the position of the main window of the specified process.
SliceWindowSize(IntPtr, Size) Slices the size of the specified window.
SliceWindowSize(IWin32Window, Size) Slices the size of the specified window.
SliceWindowSize(Process, Size) Slices the size of the main window of the specified process.
ToString Returns a string that represents the current object.
(Inherited from Object)
VerticalScrollIsAtBottom(Control) Determines whether the Vertical Scrollbar's scroll of a Control is at Bottom of the Scroll range.
VerticalScrollIsAtBottom(IWin32Window) Determines whether the Vertical Scrollbar's scroll of a window is at Bottom of the Scroll range.
VerticalScrollIsAtTop(Control) Determines whether the Vertical Scrollbar's scroll of a Control is at Top of the Scroll range.
VerticalScrollIsAtTop(IWin32Window) Determines whether the Vertical Scrollbar's scroll of a window is at Top of the Scroll range.
VerticalScrollReachedBottom(Control) Determines whether the Vertical Scrollbar's scroll of a Control has reached the Bottom of the Scroll range.
VerticalScrollReachedBottom(IWin32Window) Determines whether the Vertical Scrollbar's scroll of a window has reached the Bottom of the Scroll range.
VerticalScrollReachedTop(Control) Determines whether the Vertical Scrollbar's scroll of a Control has reached the Top of the Scroll range.
VerticalScrollReachedTop(IWin32Window) Determines whether the Vertical Scrollbar's scroll of a window has reached the Top of the Scroll range.
WaitForChildWindow(IntPtr, String, String, Double) Waits the specified amount of time for a child window to be shown in the screen, whose class name and window title matches the specified parameters.
WaitForChildWindow(IntPtr, String, String, TimeSpan) Waits the specified amount of time for a child window to be shown in the screen, whose class name and window title matches the specified parameters.
WaitForWindow(String, String, Double) Waits the specified amount of time for a top-level window to be shown in the screen, whose class name and window title matches the specified parameters.
WaitForWindow(String, String, TimeSpan) Waits the specified amount of time for a top-level window to be shown in the screen, whose class name and window title matches the specified parameters.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also