我如何获得屏幕方向?
How I can get screen orientation?
我正在输入要显示表单的屏幕编号。而且我必须获得屏幕方向。有人知道该怎么做吗?
public UIManager(int screenIndex)
{
this.ScreenIndex = screenIndex;
try
{
Screen[] all_screens;
all_screens = Screen.AllScreens;
if (all_screens.Length >= ScreenIndex)
{
this.customer_form.Left = all_screens[this.ScreenIndex].Bounds.Width;
this.customer_form.Top = all_screens[this.ScreenIndex].Bounds.Height;
this.customer_form.Show();
}
}
catch
{
//Do nothing
}
}
我正在输入要显示表单的屏幕编号。而且我必须获得屏幕方向。有人知道该怎么做吗?
public UIManager(int screenIndex)
{
this.ScreenIndex = screenIndex;
try
{
Screen[] all_screens;
all_screens = Screen.AllScreens;
if (all_screens.Length >= ScreenIndex)
{
this.customer_form.Left = all_screens[this.ScreenIndex].Bounds.Width;
this.customer_form.Top = all_screens[this.ScreenIndex].Bounds.Height;
this.customer_form.Show();
}
}
catch
{
//Do nothing
}
}