次の方法で共有


ITransformProvider.Move Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Moves the control.

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

Syntax

'Declaration
Sub Move ( _
    x As Double, _
    y As Double _
)
void Move(
    double x,
    double y
)

Parameters

  • x
    Type: System.Double
    The absolute screen coordinates of the left side of the control.
  • y
    Type: System.Double
    The absolute screen coordinates of the top of the control.

Remarks

An object cannot be moved, resized, or rotated in such a way that its resulting screen location would be completely outside the coordinates of its container, and therefore would be inaccessible to the keyboard or the mouse. For example, this would occur if a top-level window were moved completely off-screen, or if a child object were 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, and the top or left coordinates are overridden to be within the container boundaries.

Consider raising InvalidOperationException if the CanMove property is false.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.