(windows.foundation.h) IPropertyValue::GetRect 方法

取得儲存在目前IPropertyValue物件中的Rect值。

語法

HRESULT GetRect(
  [out, retval] ABI::Windows::Foundation::Rect *value
);

參數

[out, retval] value

類型: Rect*

數值。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

   
最低支援的用戶端 Windows 8
最低支援的伺服器 Windows Server 2012
目標平台 Windows
標頭 windows.foundation.h

另請參閱

IPropertyValue

IPropertyValueStatics::CreateRect