RichEditBoxAutomationPeer RichEditBoxAutomationPeer RichEditBoxAutomationPeer RichEditBoxAutomationPeer Class


Exposes RichEditBox types to Microsoft UI Automation.

public : class RichEditBoxAutomationPeer : FrameworkElementAutomationPeer, IRichEditBoxAutomationPeerpublic class RichEditBoxAutomationPeer : FrameworkElementAutomationPeer, IRichEditBoxAutomationPeerPublic Class RichEditBoxAutomationPeer Inherits FrameworkElementAutomationPeer Implements IRichEditBoxAutomationPeer// This API is not available in Javascript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties


The Windows Runtime RichEditBox class creates a new RichEditBoxAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from RichEditBoxAutomationPeer if you are deriving a custom class from RichEditBox and want to add automation support for additional features that you enabled in your custom class. Then override OnCreateAutomationPeer so that it returns your custom peer.

Default peer implementation and overrides in RichEditBoxAutomationPeer

RichEditBoxAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

TextPattern support

RichEditBoxAutomationPeer supports the TextPattern Microsoft UI Automation pattern. The support for this pattern is implemented as native code by the peer, so you won't see public API for the RichEditBoxAutomationPeer peer class that exposes the pattern implementation for extension. And you won't see ITextRangeProvider and the similar managed interfaces in the RichEditBoxAutomationPeer inheritance. But Microsoft UI Automation clients can use the TextPattern pattern implemented by this peer and call its native API surface.


RichEditBoxAutomationPeer(RichEditBox) RichEditBoxAutomationPeer(RichEditBox) RichEditBoxAutomationPeer(RichEditBox) RichEditBoxAutomationPeer(RichEditBox)

Initializes a new instance of the RichEditBoxAutomationPeer class.

public : RichEditBoxAutomationPeer(RichEditBox owner)public RichEditBoxAutomationPeer(RichEditBox owner)Public Sub New(owner As RichEditBox)// This API is not available in Javascript.
RichEditBox RichEditBox RichEditBox RichEditBox

The owner element to create for.

See Also