AutomationPeer.IsHwndHost 屬性

定義

取得值,這個值表示是否與 WPF Windows Presentation Foundation (中這個 AutomationPeer 主機 hwnds 相關聯的專案) 。

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如果與 WPF) Windows Presentation Foundation (中與這個 AutomationPeer 主機 hwnds 相關聯的專案,則為 , false 否則為 。

備註

Windows Presentation Foundation (WPF) 中裝載 hwnds 的兩個元素範例為 WindowsFormsHostPopup

這些對等也必須覆寫 GetHostRawElementProviderCore

適用於

另請參閱