DpiAwareness.GetDpiX(Visual) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
The Visual's DPI.