Table of Contents

Class TextBoxAutomationPeer

Namespace
Avalonia.Automation.Peers
Assembly
Avalonia.Controls.dll
public class TextBoxAutomationPeer : ControlAutomationPeer, IValueProvider
Inheritance
TextBoxAutomationPeer
Implements
Inherited Members

Constructors

TextBoxAutomationPeer(TextBox)

public TextBoxAutomationPeer(TextBox owner)

Parameters

owner TextBox

Properties

IsReadOnly

Gets a value that indicates whether the value of a control is read-only.

public bool IsReadOnly { get; }

Property Value

bool

Remarks

Windows IValueProvider.IsReadOnly
macOSNo mapping.

Owner

public TextBox Owner { get; }

Property Value

TextBox

Value

Gets the value of the control.

public string? Value { get; }

Property Value

string

Remarks

Windows IValueProvider.Value
macOS NSAccessibilityProtocol.accessibilityValue

Methods

GetAutomationControlTypeCore()

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

OwnerPropertyChanged(object?, AvaloniaPropertyChangedEventArgs)

protected virtual void OwnerPropertyChanged(object? sender, AvaloniaPropertyChangedEventArgs e)

Parameters

sender object
e AvaloniaPropertyChangedEventArgs

SetValue(string?)

Sets the value of a control.

public void SetValue(string? value)

Parameters

value string

The value to set. The provider is responsible for converting the value to the appropriate data type.

Remarks

Windows IValueProvider.SetValue
macOS NSAccessibilityProtocol.setAccessibilityValue (not implemented)