IValueProvider Interface

Definition

Exposes methods and properties to support access by a Microsoft UI Automation client to controls that have an intrinsic value that does not span a range and that can be represented as a string. Implement this interface in order to support the capabilities that an automation client requests with a AutomationPeer.GetPattern call and PatternInterface.Value.

public interface class IValueProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2555318735, 17937, 22670, 181, 46, 185, 106, 18, 50, 44, 113)]
struct IValueProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(2555318735, 17937, 22670, 181, 46, 185, 106, 18, 50, 44, 113)]
public interface IValueProvider
Public Interface IValueProvider
Derived
Attributes

Remarks

The value string can be editable, depending on the control and its settings. This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see Value Control Pattern.

IValueProvider is implemented by the existing Windows Runtime class ComboBoxAutomationPeer.

The text models supported by Windows Runtime text controls such as TextBox and RichTextBlock don't use the IValueProvider pattern.

Use ValuePatternIdentifiers if you want to reference the IValueProvider pattern properties from control code when you fire automation events or call AutomationPeer.RaisePropertyChangedEvent.

Properties

IsReadOnly

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

Value

Gets the value of the control.

Methods

SetValue(String)

Sets the value of a control.

Applies to

See also