DpiAwareness.LogicalToDeviceRect 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.
Overloads
LogicalToDeviceRect(Visual, Rect) |
Converts a Rect from logical units to device units. |
LogicalToDeviceRect(Control, Rectangle) |
Converts a Rectangle from logical units to device units. |
LogicalToDeviceRect(IntPtr, Rect) |
Converts a Rect from logical units to device units. |
LogicalToDeviceRect(IntPtr, Rect) |
Converts a window's bounding rectangle from logical units to device units. |
LogicalToDeviceRect(IntPtr, Rectangle) |
Converts a window's bounding rectangle from logical units to device units. |
LogicalToDeviceRect(Window) | |
LogicalToDeviceRect(Control) |
Converts a ControlRectangle from logical units to device units. |
LogicalToDeviceRect(IntPtr, Rectangle) |
Converts a Rectangle from logical units to device units. |
LogicalToDeviceRect(Visual, Rect)
Converts a Rect from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Rect LogicalToDeviceRect(System::Windows::Media::Visual ^ visual, System::Windows::Rect rect);
public static System.Windows.Rect LogicalToDeviceRect (this System.Windows.Media.Visual visual, System.Windows.Rect rect);
static member LogicalToDeviceRect : System.Windows.Media.Visual * System.Windows.Rect -> System.Windows.Rect
<Extension()>
Public Function LogicalToDeviceRect (visual As Visual, rect As Rect) As Rect
Parameters
Returns
A new Rect in device units.
Applies to
LogicalToDeviceRect(Control, Rectangle)
Converts a Rectangle from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Drawing::Rectangle LogicalToDeviceRect(System::Windows::Forms::Control ^ control, System::Drawing::Rectangle rect);
public static System.Drawing.Rectangle LogicalToDeviceRect (this System.Windows.Forms.Control control, System.Drawing.Rectangle rect);
static member LogicalToDeviceRect : System.Windows.Forms.Control * System.Drawing.Rectangle -> System.Drawing.Rectangle
<Extension()>
Public Function LogicalToDeviceRect (control As Control, rect As Rectangle) As Rectangle
Parameters
Returns
A new Rectangle in device units.
Applies to
LogicalToDeviceRect(IntPtr, Rect)
Converts a Rect from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Rect LogicalToDeviceRect(IntPtr hwnd, System::Windows::Rect rect);
public static System.Windows.Rect LogicalToDeviceRect (this IntPtr hwnd, System.Windows.Rect rect);
static member LogicalToDeviceRect : nativeint * System.Windows.Rect -> System.Windows.Rect
<Extension()>
Public Function LogicalToDeviceRect (hwnd As IntPtr, rect As Rect) As Rect
Parameters
Returns
A new Rect in device units.
Applies to
LogicalToDeviceRect(IntPtr, Rect)
Converts a window's bounding rectangle from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static bool LogicalToDeviceRect(IntPtr hwnd, [Runtime::InteropServices::Out] System::Windows::Rect % rect);
public static bool LogicalToDeviceRect (this IntPtr hwnd, out System.Windows.Rect rect);
static member LogicalToDeviceRect : nativeint * Rect -> bool
<Extension()>
Public Function LogicalToDeviceRect (hwnd As IntPtr, ByRef rect As Rect) As Boolean
Parameters
Returns
True if the conversion succeeded, false if it failed.
Applies to
LogicalToDeviceRect(IntPtr, Rectangle)
Converts a window's bounding rectangle from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static bool LogicalToDeviceRect(IntPtr hwnd, [Runtime::InteropServices::Out] System::Drawing::Rectangle % rect);
public static bool LogicalToDeviceRect (this IntPtr hwnd, out System.Drawing.Rectangle rect);
static member LogicalToDeviceRect : nativeint * Rectangle -> bool
<Extension()>
Public Function LogicalToDeviceRect (hwnd As IntPtr, ByRef rect As Rectangle) As Boolean
Parameters
Returns
True if the conversion succeeded, false if it failed.
Applies to
LogicalToDeviceRect(Window)
public:
[System::Runtime::CompilerServices::Extension]
static System::Windows::Rect LogicalToDeviceRect(System::Windows::Window ^ window);
public static System.Windows.Rect LogicalToDeviceRect (this System.Windows.Window window);
static member LogicalToDeviceRect : System.Windows.Window -> System.Windows.Rect
<Extension()>
Public Function LogicalToDeviceRect (window As Window) As Rect
Parameters
Returns
A new Rect in device units.
Applies to
LogicalToDeviceRect(Control)
public:
[System::Runtime::CompilerServices::Extension]
static System::Drawing::Rectangle LogicalToDeviceRect(System::Windows::Forms::Control ^ control);
public static System.Drawing.Rectangle LogicalToDeviceRect (this System.Windows.Forms.Control control);
static member LogicalToDeviceRect : System.Windows.Forms.Control -> System.Drawing.Rectangle
<Extension()>
Public Function LogicalToDeviceRect (control As Control) As Rectangle
Parameters
Returns
A new Rectangle in device units.
Applies to
LogicalToDeviceRect(IntPtr, Rectangle)
Converts a Rectangle from logical units to device units.
public:
[System::Runtime::CompilerServices::Extension]
static System::Drawing::Rectangle LogicalToDeviceRect(IntPtr hwnd, System::Drawing::Rectangle rect);
public static System.Drawing.Rectangle LogicalToDeviceRect (this IntPtr hwnd, System.Drawing.Rectangle rect);
static member LogicalToDeviceRect : nativeint * System.Drawing.Rectangle -> System.Drawing.Rectangle
<Extension()>
Public Function LogicalToDeviceRect (hwnd As IntPtr, rect As Rectangle) As Rectangle
Parameters
Returns
A new Rectangle in device units.