UiPath Documentation
activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités UIAutomation

Dernière mise à jour 7 avr. 2026

SetDeviceOrientation

Modifie et récupère l'orientation de l'appareil connecté.

Définition

Espace de noms: UiPath.MobileAutomation.API.Models

Assembly: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

SetDeviceOrientation(DeviceOrientationEnumC, MobileOptions.SetDeviceOrientationOptions)

ScreenOrientation SetDeviceOrientation(
	    DeviceOrientationEnumC screenOrientationCommand,
	    MobileOptions. SetDeviceOrientationOptions options = null
)
ScreenOrientation SetDeviceOrientation(
	    DeviceOrientationEnumC screenOrientationCommand,
	    MobileOptions. SetDeviceOrientationOptions options = null
)

screenOrientationCommand DeviceOrientationEnumC : spécifie la commande pour définir l'orientation de l'écran. Les options suivantes sont disponibles :

* `Portrait`
* `Landscape`
* `Toggle`
* `Portrait`
* `Landscape`
* `Toggle`

options MobileOptions.Set DeviceOrientationOptions : spécifie le MobileOptions.SetDeviceOrientationOptions pour l'action SetDeviceOrientation . La valeur par défaut est null.

RetournerValeur

ScreenOrientation

Renvoie la nouvelleorientation de l'appareil.

Cette page vous a-t-elle été utile ?

Connecter

Besoin d'aide ? Assistance

Vous souhaitez apprendre ? UiPath Academy

Vous avez des questions ? UiPath Forum

Rester à jour