IValueProvider Interface
Definition
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
| Name | Description |
|---|---|
| SetValue | Sets 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
- Windows
IValueProvider.SetValue - macOS
NSAccessibilityProtocol.setAccessibilityValue
Properties
| Name | Description |
|---|---|
| IsReadOnly | Gets a value that indicates whether the value of a control is read-only. |
| Value | Gets 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
- Windows
IValueProvider.IsReadOnly - macOSNo mapping.
Value Property
Gets the value of the control.
public string Value { get; set; }
Remarks
- Windows
IValueProvider.Value - macOS
NSAccessibilityProtocol.accessibilityValue