Partager via


DpiAwareness.GetDpiX(Visual) Method

Definition

Gets the x-coordinate (or horizontal) DPI of the given Visual.

public:
[System::Runtime::CompilerServices::Extension]
 static double GetDpiX(System::Windows::Media::Visual ^ visual);
public static double GetDpiX (this System.Windows.Media.Visual visual);
static member GetDpiX : System.Windows.Media.Visual -> double
<Extension()>
Public Function GetDpiX (visual As Visual) As Double

Parameters

visual
Visual

The Visual from which to get the DPI.

Returns

The Visual's DPI.

Applies to