TextBoxAutomationPeer TextBoxAutomationPeer TextBoxAutomationPeer Class

Exposes TextBox types to Microsoft UI Automation.

Syntax

Declaration

public class TextBoxAutomationPeerpublic class TextBoxAutomationPeerPublic Class TextBoxAutomationPeer

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

The Windows Runtime TextBox class creates a new TextBoxAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from TextBoxAutomationPeer if you are deriving a custom class from TextBox 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 TextBoxAutomationPeer

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

TextPattern support

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

Constructors summary

Initializes a new instance of the TextBoxAutomationPeer class.

Constructors

  • TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox)
    TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox)
    TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox)
    TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox)

    Initializes a new instance of the TextBoxAutomationPeer class.

    public TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox)public TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox)Public Function TextBoxAutomationPeer(Windows.UI.Xaml.Controls.TextBox) As

    Parameters

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.ComposableAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Automation.Peers.dll