public static Window move(this Window window, int left, int top) { var handle = window.handle(); var rect = API_GuiAutomation_ExtensionMethods_Window_using_WindowHandle.windowRectangle(null, handle); var right = (rect.right - rect.left); //+ left; var bottom = (rect.bottom - rect.top); //+ top; window.move(left, top, right, bottom); return(window); }
public static Window move(this Window window, int left, int top, int width, int height) { API_GuiAutomation_ExtensionMethods_Window_using_WindowHandle.moveWindow(null, window.handle(), left, top, width, height); return(window); }