ScreenOrientation Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the angle of the orientation of the device screen that can be accessed by the ScreenOrientation property.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

public enum class ScreenOrientation

Member nameDescription
Supported by the .NET Compact FrameworkAngle0Specifies a portrait orientation at 0 degrees.
Supported by the .NET Compact FrameworkAngle90Specifies an orientation at 90 degrees.
Supported by the .NET Compact FrameworkAngle180Specifies a landscape orientation at 180 degrees.
Supported by the .NET Compact FrameworkAngle270Specifies an orientation at 270 degrees.

The default portrait orientation is at angle 0. Requires Pocket PC 2003 update.

The following code example shows how button clicks rotate the screen orientation through the ScreenOrientation enumeration. This code example is part of a larger example provided for the SystemSettings class.

No code example is currently available or this language may not be supported.

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.

.NET Compact Framework

Supported in: 3.5, 2.0
Show: