Click or drag to resize
Ranorex

MobileUiElementSetOrientation Method

Sets the device orientation.

Namespace:  Ranorex
Assembly:  Ranorex.Plugin.Mobile (in Ranorex.Plugin.Mobile.dll) Version: 12.7.4-git.38314c06
Syntax
public virtual void SetOrientation(
	DeviceOrientation DeviceOrientation
)

Parameters

DeviceOrientation
Type: DeviceOrientation
The orientation of the device. Possible values are 'Portrait', 'PortraitUpsideDown', 'LandscapeLeft', 'LandscapeRight', 'FaceUp' and 'FaceDown'.
Exceptions
ExceptionCondition
ActionFailedExceptionThrown if invoking the action failed.
See Also