如何获得控制台应用程序的屏幕尺寸?

如何获得控制台应用程序的屏幕尺寸?

问题描述:

如何在控制台应用程序中获取屏幕尺寸?

How do you get the screen size in a console application?

var w = Console.WindowWidth;
var h = Console.WindowHeight;

-编辑-

Screen.PrimaryScreen.Bounds 
Screen.PrimaryScreen.WorkingArea