UserControl.OnCreateAutomationPeer 方法

定义

创建并返回此 AutomationPeer 的一个 UserControl

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

UserControlAutomationPeer 的新 UserControl

适用于