Move Method
Collapse the table of content
Expand the table of content

ITransformProvider.Move Method (Double, Double)


Moves the control.

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

Sub Move (
	x As Double,
	y As Double


Type: System.Double

Absolute screen coordinates of the left side of the control.

Type: System.Double

Absolute screen coordinates of the top of the control.

Exception Condition

If the CanMove property is false.

An object cannot be moved, resized, or rotated such that its resulting screen location would be completely outside the coordinates of its container and inaccessible to keyboard or mouse. For example, when a top-level window is moved completely off-screen or a child object is moved outside the boundaries of the container's viewport. In these cases the object is placed as close to the requested screen coordinates as possible with the top or left coordinates overridden to be within the container boundaries.

The following example shows one possible implementation of this method for a custom control that can be moved.

.NET Framework
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft