共用方式為


ViewBase.GetAutomationPeer(ListView) 方法

定義

ListView 控制項為其 ListViewAutomationPeer 建立 View 時呼叫。

protected public:
 virtual System::Windows::Automation::Peers::IViewAutomationPeer ^ GetAutomationPeer(System::Windows::Controls::ListView ^ parent);
protected internal virtual System.Windows.Automation.Peers.IViewAutomationPeer GetAutomationPeer (System.Windows.Controls.ListView parent);
abstract member GetAutomationPeer : System.Windows.Controls.ListView -> System.Windows.Automation.Peers.IViewAutomationPeer
override this.GetAutomationPeer : System.Windows.Controls.ListView -> System.Windows.Automation.Peers.IViewAutomationPeer
Protected Friend Overridable Function GetAutomationPeer (parent As ListView) As IViewAutomationPeer

參數

parent
ListView

要用來建立 ListViewListViewAutomationPeer 控制項。

傳回

IViewAutomationPeer

實作自訂 IViewAutomationPeerListViewAutomationPeerView 介面。

備註

ListViewAutomationPeer 一個會先使用指定檢視所實作的屬性和 AutomationPattern 物件,再使用為 ListView 控制項定義的預設屬性和模式。

適用於