Class
RadAutoCompleteBoxAutomationPeer

Provides a class that exposes the RadAutoCompleteBox control for UI Automation. This class inherits from and implements the ISelectionProvider and IValueProvider interfaces, enabling automation clients to interact with the RadAutoCompleteBox. The RadAutoCompleteBoxAutomationPeer class allows for interaction with properties such as the selected items, search text, and various display modes. It also facilitates selection operation through the GetSelection() method and allows setting values with the SetValue(string) method. Furthermore, it provides information about the selection mode and value read-only state through properties like CanSelectMultiple and IsReadOnly. This class is designed to enhance accessibility by exposing the underlying control's behavior and state to automation tools, ensuring that users can interact with the RadAutoCompleteBox using assistive technologies.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class RadAutoCompleteBoxAutomationPeer : FrameworkElementAutomationPeer, ISelectionProvider, IValueProvider

Inheritance: objectRadAutoCompleteBoxAutomationPeer

Implements: ISelectionProviderIValueProvider

Constructors

RadAutoCompleteBoxAutomationPeer(FrameworkElement)

Initializes a new instance of the RadAutoCompleteBoxAutomationPeer class.

Declaration

cs-api-definition
public RadAutoCompleteBoxAutomationPeer(FrameworkElement owner)

Parameters

owner

FrameworkElement

The owner.

Properties

CanSelectMultiple

Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.

Declaration

cs-api-definition
public bool CanSelectMultiple { get; }

Property Value

bool

true if multiple selection is allowed; otherwise false.

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

IsSelectionRequired

Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.

Declaration

cs-api-definition
public bool IsSelectionRequired { get; }

Property Value

bool

true if selection is required; otherwise false.

Value

Gets the value of the control.

Declaration

cs-api-definition
public string Value { get; }

Property Value

string

Methods

GetChildrenCore()

Gets the collection of child elements of the UIElement that is associated with this . This method is called by .

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>

A list of child AutomationPeer elements.

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

The type of the control.

GetPattern(PatternInterface)

Gets the control pattern for the UIElement that is associated with this .

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

A value from the enumeration.

Returns

object

An object that implements the interface if patternInterface is ; otherwise, null.

GetSelection()

Retrieves a UI Automation provider for each child element that is selected.

Declaration

cs-api-definition
public IRawElementProviderSimple[] GetSelection()

Returns

IRawElementProviderSimple[]

A collection of UI Automation providers.

SetValue(string)

Sets the value.

Declaration

cs-api-definition
public void SetValue(string value)

Parameters

value

string

The value.