Display Development FAQs

What Does the Orientation Value 4 of the Display Object Mean for a Virtual Screen?

Symptom

After obtaining the Display object of a virtual screen, the orientation value is 4, which is not within the Orientation enumeration range.

Possible Causes

A virtual screen has no physical screen and cannot perceive the screen orientation. If the screen orientation is not actively set, the system cannot return any value in the Orientation enumeration. In this case, the orientation property returns 4 to indicate that the screen orientation is unknown.