TextBox.OnCreateAutomationPeer TextBox.OnCreateAutomationPeer TextBox.OnCreateAutomationPeer TextBox.OnCreateAutomationPeer Method

定义

为文本框创建并返回一个 AutomationPeer 对象。Creates and returns an AutomationPeer object for the text box.

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 对象。An AutomationPeer object for the text box.

注解

此方法重写 ContentElement.OnCreateAutomationPeerThis method overrides ContentElement.OnCreateAutomationPeer.

适用于