AutomationPeer.IsHwndHost 屬性

定義

取得值,這個值表示與此主控制項 AutomationPeer hwnds 在 WINDOWS PRESENTATION FOUNDATION (WPF) 中相關聯的元素。Gets a value that indicates whether the element that is associated with this AutomationPeer hosts hwnds in Windows Presentation Foundation (WPF).

protected public:
 virtual property bool IsHwndHost { bool get(); };
protected internal virtual bool IsHwndHost { get; }
member this.IsHwndHost : bool
Protected Friend Overridable ReadOnly Property IsHwndHost As Boolean

屬性值

Boolean

true 如果 Windows Presentation Foundation 中與此主控制項關聯的元素 AutomationPeer hwnds (WPF) 則為,否則為 falsetrue if the element that is associated with this AutomationPeer hosts hwnds in Windows Presentation Foundation (WPF); otherwise, false.

備註

Windows Presentation Foundation (WPF) 中裝載之元素的兩個範例 hwndsWindowsFormsHostPopupTwo examples of elements that host hwnds in Windows Presentation Foundation (WPF) are WindowsFormsHost and Popup.

這些對等也必須覆寫 GetHostRawElementProviderCoreThese peers must also override GetHostRawElementProviderCore.

適用於