根据documentation,我可以使用
获取所有屏幕System.Windows.Forms.Screen.AllScreens
foreach (var screen in System.Windows.Forms.Screen.AllScreens)
if( screen.Bounds.Height > screen.Bounds.Width )
{
//Run the application in portrait, as in:
MessageBox.Show("Run in portrait.");
}
else
{
//Run the application in landscape, as in:
MessageBox.Show("Run in landscape.");
}
但是我无法获得此屏幕是否翻转的信息。
谢谢