SystemSettings::ScreenOrientation Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets the current screen orientation of a device.
Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)
public: static property ScreenOrientation ScreenOrientation { ScreenOrientation get (); void set (ScreenOrientation value); }
Property Value
Type: Microsoft.WindowsCE.Forms::ScreenOrientationOne of the enumeration values, which are 0, 90, 180, and 270. The default is 0 (portrait view).
The following example sets the value of this property to 0 and displays the value on the status bar. This example is part of a larger example that is provided for the SystemSettings class.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: