IUIAutomationDragPattern::get_CachedDropEffect 方法 (uiautomationclient.h)

擷取快取的當地語系化字串,指出當使用者卸除這個專案做為拖放作業的一部分時會發生什麼情況。

這個屬性是唯讀的。

語法

HRESULT get_CachedDropEffect(
  BSTR *retVal
);

參數

retVal

傳回值

備註

在僅限來源的 Microsoft 使用者介面自動化 拖放樣式中,沒有任何元素會實作 DropTarget 模式。 若要找出卸除拖曳元素的效果,用戶端可以查詢所拖曳專案的 DropEffect 屬性。 此屬性可以是簡短字串,例如 「move」,或較長的字串,例如「插入 Main 群組」。 字串一律會本地化。

規格需求

需求
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 [僅限傳統型應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

IUIAutomationDragPattern

IUIAutomationDropTargetPattern::CachedDropTargetEffect

IUIAutomationDropTargetPattern::CurrentDropTargetEffect

拖放 使用者介面自動化支援