次の方法で共有


DpiAwareness.LogicalToDeviceRect Method

Definition

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)

Converts a WindowRect from logical units to device units.

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

visual
Visual

The Visual with which to convert the given Rect.

rect
Rect

The Rect to convert.

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

control
Control

The Control with which to convert the given Rectangle.

rect
Rectangle

The Rectangle to convert.

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

hwnd
IntPtr

nativeint

The IntPtr of the window with which to convert the given Rect.

rect
Rect

The Rect to convert.

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

hwnd
IntPtr

nativeint

The IntPtr of the window whose bounding rectangle to convert.

rect
Rect

The Rect in device units.

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

hwnd
IntPtr

nativeint

The IntPtr of the window whose bounding rectangle to convert.

rect
Rectangle

The Rectangle in device units.

Returns

True if the conversion succeeded, false if it failed.

Applies to

LogicalToDeviceRect(Window)

Converts a WindowRect from logical units to device units.

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

window
Window

The Window whose bounding Rect to convert.

Returns

A new Rect in device units.

Applies to

LogicalToDeviceRect(Control)

Converts a ControlRectangle from logical units to device units.

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

control
Control

The Control whose bounding Rectangle to convert.

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

hwnd
IntPtr

nativeint

The IntPtr of the window with which to convert the given Rectangle.

rect
Rectangle

The Rectangle to convert.

Returns

A new Rectangle in device units.

Applies to