DpiHelper.GetDeviceActualSize(FrameworkElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 FrameworkElement 的大小(以设备单位为单位)
public:
System::Windows::Size GetDeviceActualSize(System::Windows::FrameworkElement ^ element);
public System.Windows.Size GetDeviceActualSize (System.Windows.FrameworkElement element);
member this.GetDeviceActualSize : System.Windows.FrameworkElement -> System.Windows.Size
Public Function GetDeviceActualSize (element As FrameworkElement) As Size
参数
- element
- FrameworkElement
要检查的 FrameworkElement
返回
设备实际大小