Compartir a través de


DpiHelper.SetDeviceLeft(Window, Double) Method

Definition

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for Window that sets its Left coordinate using device units

public:
[System::Runtime::CompilerServices::Extension]
 static void SetDeviceLeft(System::Windows::Window ^ window, double deviceLeft);
public static void SetDeviceLeft (this System.Windows.Window window, double deviceLeft);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static void SetDeviceLeft (this System.Windows.Window window, double deviceLeft);
static member SetDeviceLeft : System.Windows.Window * double -> unit
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member SetDeviceLeft : System.Windows.Window * double -> unit
<Extension()>
Public Sub SetDeviceLeft (window As Window, deviceLeft As Double)

Parameters

window
Window

Window to modify

deviceLeft
Double

New left coordinate in device units

Attributes

Applies to