ITransformProvider ITransformProvider ITransformProvider ITransformProvider Interface

Definition

Exposes methods and properties to support access by a Microsoft UI Automation client to controls or elements that can be moved, resized, or rotated within a two-dimensional space. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.Transform.

public : interface ITransformProviderpublic interface ITransformProviderPublic Interface ITransformProvider// This API is not available in Javascript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see Transform Control Pattern.

ITransformProvider isn't implemented by any existing Windows Runtime automation peers. The interface exists so that custom control authors can support the automation pattern in a custom control, and implement their automation support using the same Windows Runtime managed or C++ API as they use to define control logic or other automation support.

Use the TransformPatternIdentifiers class if you want to reference the ITransformProvider pattern properties from control code when you call RaisePropertyChangedEvent.

Properties

CanMove CanMove CanMove CanMove

Gets a value that indicates whether the element can be moved.

public : PlatForm::Boolean CanMove { get; }public bool CanMove { get; }Public ReadOnly Property CanMove As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the element can be moved; otherwise, false.

CanResize CanResize CanResize CanResize

Gets a value that indicates whether the element can be resized.

public : PlatForm::Boolean CanResize { get; }public bool CanResize { get; }Public ReadOnly Property CanResize As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the element can be resized; otherwise, false.

CanRotate CanRotate CanRotate CanRotate

Gets a value that indicates whether the element can be rotated.

public : PlatForm::Boolean CanRotate { get; }public bool CanRotate { get; }Public ReadOnly Property CanRotate As bool// This API is not available in Javascript.
Value
PlatForm::Boolean bool bool bool

true if the element can be rotated; otherwise, false.

Methods

Move(Double, Double) Move(Double, Double) Move(Double, Double) Move(Double, Double)

Moves the control.

public : void Move(double x, double y)public void Move(Double x, Double y)Public Function Move(x As Double, y As Double) As void// This API is not available in Javascript.
Parameters
x
double Double Double Double

The absolute screen coordinates of the left side of the control.

y
double Double Double Double

The absolute screen coordinates of the top of the control.

Resize(Double, Double) Resize(Double, Double) Resize(Double, Double) Resize(Double, Double)

Resizes the control.

public : void Resize(double width, double height)public void Resize(Double width, Double height)Public Function Resize(width As Double, height As Double) As void// This API is not available in Javascript.
Parameters
width
double Double Double Double

The new width of the window, in pixels.

height
double Double Double Double

The new height of the window, in pixels.

Rotate(Double) Rotate(Double) Rotate(Double) Rotate(Double)

Rotates the control.

public : void Rotate(double degrees)public void Rotate(Double degrees)Public Function Rotate(degrees As Double) As void// This API is not available in Javascript.
Parameters
degrees
double Double Double Double

The number of degrees to rotate the control. A positive number rotates the control clockwise. A negative number rotates the control counterclockwise.

See Also