public interface ITransformProvider extends IInitable
Implemented on a Microsoft UI Automation provider that must support the Transform control pattern. Support for this control pattern is not limited to objects on the desktop. This control pattern must also be implemented by the children of a container object as long as the children can be moved, resized, or rotated freely within the boundaries of the container.
Modifier and Type | Interface and Description |
---|---|
static class |
ITransformProvider.TransformProviderContext
context object for ITransformProvider.
|
Modifier and Type | Method and Description |
---|---|
boolean |
get_CanMove()
Indicates whether the control can be moved.
|
boolean |
get_CanResize()
Indicates whether the control can be rotated.
|
boolean |
get_CanRotate()
Indicates whether the control can be resized.
|
void |
Move(double x,
double y)
Moves the control.
|
void |
Resize(double width,
double height)
Resizes the control.
|
void |
Rotate(double degrees)
Rotates the control.
|
initialize
boolean get_CanRotate()
boolean get_CanResize()
boolean get_CanMove()
void Move(double x, double y)
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.
x
- The absolute screen coordinates of the left side of the control.y
- The absolute screen coordinates of the top of the control.void Resize(double width, double height)
When called on a control supporting split panes, this method might have the side effect of resizing other contiguous panes. 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, a top-level window moved completely off-screen or a child object 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.
width
- The new width of the window in pixels.height
- The new height of the window in pixels.void Rotate(double degrees)
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, a top-level window moved completely off-screen or a child object 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.
degrees
- The number of degrees to rotate the control. A positive number rotates clockwise; a negative number rotates counterclockwise.