ScreenOrientation property
Use this property to retrieve and set the secreen orientation (portrait or landscape).
Syntax
ScreenOrientation value; // give relevant initial value
obj.ScreenOrientation = value;
value = obj.ScreenOrientation
Type:ScreenOrientation