次の方法で共有


DpiAwareness.GetDpiYScale(Visual) Method

Definition

Gets the y-coordinate (or vertical) DPI scale of the given Visual.

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

Parameters

visual
Visual

The Visual from which to get the DPI scale.

Returns

The Visual's DPI scale.

Applies to