Class
DesktopTransformPattern

Represents transform pattern.

Definition

Namespace:ArtOfTest.WebAii.DesktopAutomation.Patterns

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class DesktopTransformPattern : DesktopPattern

Inheritance: objectDesktopPatternDesktopTransformPattern

Inherited Members DesktopPattern.elementDesktopPattern.EnumNativeArray(IUIAutomationElementArray)DesktopPattern.GetNativePattern<T>(int)

Constructors

DesktopTransformPattern(DesktopElement)

Create new instance of DesktopTogglePattern class.

Declaration

cs-api-definition
public DesktopTransformPattern(DesktopElement element)

Parameters

element

DesktopElement

Underlying element.

Properties

CanMove

Indicates whether underlying element can be moved or not.

Declaration

cs-api-definition
public bool CanMove { get; }

Property Value

bool

CanResize

Indicates whether underlying element can be resized or not.

Declaration

cs-api-definition
public bool CanResize { get; }

Property Value

bool

CanRotate

Indicates whether underlying element can be rotated or not.

Declaration

cs-api-definition
public bool CanRotate { get; }

Property Value

bool

Methods

Move(double, double)

Move underlying element to specific coordinates.

Declaration

cs-api-definition
public void Move(double x, double y)

Parameters

x

double

X coordinate.

y

double

Y coordinate.

Resize(double, double)

Resize underlying element to new width and height.

Declaration

cs-api-definition
public void Resize(double width, double height)

Parameters

width

double

New width.

height

double

New height