Udostępnij za pośrednictwem


DpiHelper.GetDeviceLeft(Window) Method

Definition

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Window that returns its Left coordinate in device units

public:
[System::Runtime::CompilerServices::Extension]
 static double GetDeviceLeft(System::Windows::Window ^ window);
public static double GetDeviceLeft (this System.Windows.Window window);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static double GetDeviceLeft (this System.Windows.Window window);
static member GetDeviceLeft : System.Windows.Window -> double
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member GetDeviceLeft : System.Windows.Window -> double
<Extension()>
Public Function GetDeviceLeft (window As Window) As Double

Parameters

window
Window

Window to inspect

Returns

Left coordinate in device units

Attributes

Applies to