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:
public class RadAutoCompleteBoxAutomationPeer : FrameworkElementAutomationPeer, ISelectionProvider, IValueProvider
Inheritance: objectRadAutoCompleteBoxAutomationPeer
Implements:
Constructors
Initializes a new instance of the RadAutoCompleteBoxAutomationPeer class.
public RadAutoCompleteBoxAutomationPeer(FrameworkElement owner)
The owner.
Properties
Gets a value that specifies whether the UI Automation provider allows more than one child element to be selected concurrently.
public bool CanSelectMultiple { get; }
true if multiple selection is allowed; otherwise false.
Gets a value that indicates whether the value of a control is read-only.
public bool IsReadOnly { get; }
Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.
public bool IsSelectionRequired { get; }
true if selection is required; otherwise false.
Methods
Gets the collection of child elements of the UIElement that is associated with this . This method is called by .
protected override List<AutomationPeer> GetChildrenCore()
List<AutomationPeer>
A list of child AutomationPeer elements.
When overridden in a derived class, is called by .
Gets the control pattern for the UIElement that is associated with this .
public override object GetPattern(PatternInterface patternInterface)
A value from the enumeration.
Returns:An object that implements the
interface if patternInterface is ;
otherwise, null.
Retrieves a UI Automation provider for each child element that is selected.
public IRawElementProviderSimple[] GetSelection()
IRawElementProviderSimple[]
A collection of UI Automation providers.
Sets the value.