Bagikan melalui


DpiHelper.GetDeviceActualSize(FrameworkElement) Method

Definition

Caution

Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.

Extension method for FrameworkElement that returns its Size in device units

public:
[System::Runtime::CompilerServices::Extension]
 static System::Windows::Size GetDeviceActualSize(System::Windows::FrameworkElement ^ element);
public static System.Windows.Size GetDeviceActualSize (this System.Windows.FrameworkElement element);
[System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")]
public static System.Windows.Size GetDeviceActualSize (this System.Windows.FrameworkElement element);
static member GetDeviceActualSize : System.Windows.FrameworkElement -> System.Windows.Size
[<System.Obsolete("Use Microsoft.VisualStudio.Utilities.DpiAwareness instead.")>]
static member GetDeviceActualSize : System.Windows.FrameworkElement -> System.Windows.Size
<Extension()>
Public Function GetDeviceActualSize (element As FrameworkElement) As Size

Parameters

element
FrameworkElement

FrameworkElement to inspect

Returns

Actual Size in device units

Attributes

Applies to