UserControl.OnCreateAutomationPeer UserControl.OnCreateAutomationPeer UserControl.OnCreateAutomationPeer UserControl.OnCreateAutomationPeer Method

定义

创建并返回此 AutomationPeer 的一个 UserControlCreates and returns an AutomationPeer for this 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

返回

适用于