Compartir a través de


DisplayOrientation Property

Specifies the display orientation for an application running on a Tablet PC.

_SCREEN.DisplayOrientation [= nValue]

Return Value

  • nValue
    The settings for the DisplayOrientation property are:

    Setting

    Description

    0

    Display is in Upright Landscape mode.

    1

    Display is in Upright Portrait mode.

    2

    Display is in Inverted Landscape mode.

    3

    Display is in Inverted Portrait mode.

    If you omit the nValue parameter, DisplayOrientation returns a value indicating the current display orientation.

Remarks

The DisplayOrientation property is read-write. If you change the DisplayOrientation property value, the Tablet PC's display orientation is rotated as it would from the Tablet PC’s control panel.

You can detect a Tablet PC screen rotation event by using the BINDEVENT( ) Function with the DisplayOrientation property.

See Also

Reference

BINDEVENT( ) Function

_SCREEN System Variable Properties, Methods and Events