Skip to main content

IValueProvider Interface

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Exposes methods and properties to support access by a UI Automation client to controls that have an intrinsic value that does not span a range and that can be represented as a string.

public interface IValueProvider

Methods​

NameDescription
SetValueSets the value of a control.

SetValue Method​

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​

  • WindowsIValueProvider.SetValue
  • macOSNSAccessibilityProtocol.setAccessibilityValue

Properties​

NameDescription
IsReadOnlyGets a value that indicates whether the value of a control is read-only.
ValueGets the value of the control.

IsReadOnly Property​

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

public bool IsReadOnly { get; set; }

Remarks​

  • WindowsIValueProvider.IsReadOnly
  • macOSNo mapping.

Value Property​

Gets the value of the control.

public string Value { get; set; }

Remarks​

  • WindowsIValueProvider.Value
  • macOSNSAccessibilityProtocol.accessibilityValue