共用方式為


Expander.OnCreateAutomationPeer 方法

定義

AutomationPeer 控制項建立 Expander 的實作。

protected:
 override System::Windows::Automation::Peers::AutomationPeer ^ OnCreateAutomationPeer();
protected override System.Windows.Automation.Peers.AutomationPeer OnCreateAutomationPeer ();
override this.OnCreateAutomationPeer : unit -> System.Windows.Automation.Peers.AutomationPeer
Protected Overrides Function OnCreateAutomationPeer () As AutomationPeer

傳回

AutomationPeer

ExpanderAutomationPeer 控制項的新 Expander

適用於