In This Article

BarTextBoxAutomationPeer Class

Exposes BarTextBox types to UI Automation.

public class BarTextBoxAutomationPeer : TextBoxAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer TextAutomationPeer TextBoxAutomationPeer object

Constructors

BarTextBoxAutomationPeer(BarTextBox)

Initializes a new instance of the BarTextBoxAutomationPeer class.

public BarTextBoxAutomationPeer(BarTextBox owner)
Parameter Type Description
owner BarTextBox

The owner element.

Methods

GetAutomationIdCore()

Gets the string that uniquely identifies the FrameworkElement that is associated with this FrameworkElementAutomationPeer. Called by GetAutomationId().

protected override string GetAutomationIdCore()

Returns

string:

The automation identifier for the element associated with the FrameworkElementAutomationPeer, or Empty if there isn't an automation identifier.

GetChildrenCore()

Gets the collection of child elements of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetChildren().

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

A list of child AutomationPeer elements.

GetClassNameCore()

Gets the name of the TextBox that is associated with this TextBoxAutomationPeer. Called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

A string that contains "TextBox".

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetNameCore()

Gets the text label of the element that is associated with this TextAutomationPeer. Called by GetName().

protected override string GetNameCore()

Returns

string:

The value of System.Windows.Automation.AutomationProperties.Name or System.Windows.Automation.AutomationProperties.LabeledBy if either is set; otherwise this method returns an empty string.