Ejemplo n.º 1
0
        //------------------------------------------------------
        //
        //  Public Methods
        //
        //------------------------------------------------------

        #region Public Methods

        /// <summary>
        /// Used to adjust an element's current location. The x, and y parameters represent the
        /// absolute on-screen position of the top-left corner in pixels, not the delta between the
        /// desired location and the window's current location.
        /// </summary>
        ///
        /// <param name="x">absolute on-screen position of the top left corner</param>
        /// <param name="y">absolute on-screen position of the top left corner</param>
        ///
        /// <outside_see conditional="false">
        /// This API does not work inside the secure execution environment.
        /// <exception cref="System.Security.Permissions.SecurityPermission"/>
        /// </outside_see>
        public void Move(double x, double y)
        {
            UiaCoreApi.TransformPattern_Move(_hPattern, x, y);
        }