コード例 #1
0
        public static API_GuiAutomation_NativeMethods.Rect windowRectangle(this API_GuiAutomation guiAutomation, int windowHandle)
        {
            var rect = new API_GuiAutomation_NativeMethods.Rect();

            API_GuiAutomation_NativeMethods.GetWindowRect(windowHandle, out rect);
            return(rect);
        }
コード例 #2
0
        public static API_GuiAutomation_NativeMethods.Rect windowRectangle(this Window window)
        {
            var rect = new API_GuiAutomation_NativeMethods.Rect();

            API_GuiAutomation_NativeMethods.GetWindowRect(window.handle(), out rect);
            return(rect);
        }