New to Telerik UI for WinForms? Start a free 30-day trial

Exposes a drop-down list's displayed text through the UI Automation Value pattern.

Definition

Namespace:Telerik.WinControls.UIAutomation.ComboBox

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ComboBoxValueProvider : IValueProvider

Inheritance: objectComboBoxValueProvider

Implements: IValueProvider

Constructors

Creates a value provider for a drop-down list.

C#
public ComboBoxValueProvider(IComboBoxRadRawElementProviderFragment ownerProvider)
Parameters:ownerProviderIComboBoxRadRawElementProviderFragment

The provider for the drop-down list.

Properties

Gets whether the provider reports the value as read-only; this is true for DropDownList.

C#
public bool IsReadOnly { get; }

Implements: IValueProvider.IsReadOnly

Gets the current drop-down text as a string, or null when no text value is available.

C#
public string Value { get; }

Implements: IValueProvider.Value

Methods

Gets the drop-down text on the owning control's UI thread.

C#
public object GetValue()
Returns:

object

The current text, or null when the text is null.

Assigns the drop-down text on the owning control's UI thread. This implementation does not check IsReadOnly.

C#
public void SetValue(string value)
Parameters:valuestring

The text to assign.

Implements: IValueProvider.SetValue(string)