RichTextBox.OnCreateAutomationPeer Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and returns an AutomationPeer object for this RichTextBox.
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
	Returns
An AutomationPeer object for this RichTextBox.
Remarks
This method overrides OnCreateAutomationPeer.