Class TextBoxAutomationPeer
Exposes TextBox types to UI automation.
Inheritance
Implements
Inherited Members
Namespace: System.Windows.Automation.Peers
Assembly: OpenSilver.dll
Syntax
public class TextBoxAutomationPeer : FrameworkElementAutomationPeer, IDependencyObject, IValueProvider
Constructors
| Improve this Doc View SourceTextBoxAutomationPeer(TextBox)
Initializes a new instance of the TextBoxAutomationPeer class.
Declaration
public TextBoxAutomationPeer(TextBox owner)
Parameters
| Type | Name | Description |
|---|---|---|
| TextBox | owner | The TextBox that is associated with this TextBoxAutomationPeer. |
Methods
| Improve this Doc View SourceGetAutomationControlTypeCore()
Gets the control type for the control that is associated with this TextBoxAutomationPeer. This method is called by GetAutomationControlType().
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
| Type | Description |
|---|---|
| AutomationControlType | A value of the enumeration. |
Overrides
| Improve this Doc View SourceGetClassNameCore()
Gets the name of the class that is associated with this TextBoxAutomationPeer. This method is called by GetClassName().
Declaration
protected override string GetClassNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The class name. |
Overrides
| Improve this Doc View SourceGetNameCore()
Gets the UI Automation Name value from the element that is associated with this TextBoxAutomationPeer. Called by GetName().
Declaration
protected override string GetNameCore()
Returns
| Type | Description |
|---|---|
| System.String | The UI Automation Name of the element that is associated with this automation peer. |
Overrides
| Improve this Doc View SourceGetPattern(PatternInterface)
Gets an object that supports the requested pattern, based on the patterns supported by this TextBoxAutomationPeer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternInterface | patternInterface | One of the enumeration values. |
Returns
| Type | Description |
|---|---|
| System.Object | The object that implements the pattern interface, or null if the specified pattern interface is not implemented by this peer. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValueProvider.IsReadOnly
Declaration
bool IValueProvider.IsReadOnly { get; }
Returns
| Type | Description |
|---|---|
| System.Boolean |
IValueProvider.SetValue(String)
Declaration
void IValueProvider.SetValue(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value |
IValueProvider.Value
Declaration
string IValueProvider.Value { get; }
Returns
| Type | Description |
|---|---|
| System.String |