System.Windows.Forms.Screen
represents a systems' display device or display devices. AllScreens | |
BitsPerPixel | |
Bounds | |
DeviceName | |
Equals() | |
FromControl() | |
FromHandle() | |
FromPoint() | |
FromRectangle() | |
GetBounds() | |
GetHashCode() | |
GetWorkingArea() | |
Primary | |
PrimaryScreen | |
ToString() | |
WorkingArea |
screens.ps1
is a PowerShell script that prints the connected monitors' dimensions and positions. add-type -assemblyName System.Windows.Forms foreach ($screen in [System.Windows.Forms.Screen]::AllScreens) { $wa = $screen.WorkingArea '{0,-18} {1,4}x{2,4} @ {3,4},{4,4}' -f $screen.DeviceName, $wa.Width, $wa.Height, $wa.X, $wa.Y }