ClassRadAutoCompleteBoxAutomationPeer
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
RadAutoCompleteBoxAutomationPeer(FrameworkElement)
Initializes a new instance of the RadAutoCompleteBoxAutomationPeer class.
Declaration
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
public bool CanSelectMultiple { get; }
Property Value
true if multiple selection is allowed; otherwise false.
IsReadOnly
Gets a value that indicates whether the value of a control is read-only.
IsSelectionRequired
Gets a value that specifies whether the UI Automation provider requires at least one child element to be selected.
Declaration
public bool IsSelectionRequired { get; }
Property Value
true if selection is required; otherwise false.
Methods
GetChildrenCore()
Gets the collection of child elements of the UIElement that is associated with this . This method is called by .
Declaration
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()
Returns
List<AutomationPeer>
A list of child AutomationPeer elements.
GetLocalizedControlTypeCore()
When overridden in a derived class, is called by .
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
The type of the control.
GetPattern(PatternInterface)
Gets the control pattern for the UIElement that is associated with this .
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
A value from the enumeration.
Returns
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
public IRawElementProviderSimple[] GetSelection()
Returns
IRawElementProviderSimple[]
A collection of UI Automation providers.
SetValue(string)
Sets the value.