-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Automation.Peers.RichEditBoxAutomationPeer |
winrt class |
Exposes RichEditBox types to Microsoft UI Automation.
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.
RichEditBoxAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.
- GetPattern reports pattern support for TextPattern, but see "TextPattern support" in this topic for more info.
- GetClassName returns "RichEditBox".
- GetAutomationControlType returns AutomationControlType.Edit.
- IsControlElement returns true.
The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.
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.
RichEditBox, FrameworkElementAutomationPeer, Custom automation peers