SystemParameters.PrimaryScreenWidth Property

 

Gets a value that indicates the screen width, in pixels, of the primary display monitor.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static double PrimaryScreenWidth {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.Double

The width of the screen.

Maps to SM_CXSCREEN. See GetSystemMetrics.

<object property="{ SystemParameters.PrimaryScreenWidth}"/>

.NET Framework
Available since 3.0
Return to top
Show: