Provides the automation peer for the RadAutoSuggestBox class, enabling UI automation for the control. This class extends and implements IValueProvider and ITextProvider interfaces. It exposes properties and methods for interacting with the control's text value, selection, and other text-related features. This automation peer allows UI automation clients to access and manipulate the RadAutoSuggestBox through the standard UI Automation protocol.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class RadAutoSuggestBoxAutomationPeer : FrameworkElementAutomationPeer, IValueProvider, ITextProvider
Inheritance: objectRadAutoSuggestBoxAutomationPeer
Implements:
Constructors
Initializes a new instance of the RadAutoSuggestBoxAutomationPeer class.
public RadAutoSuggestBoxAutomationPeer(FrameworkElement owner)
The owner.
Properties
DocumentRange
ITextRangeProvider
Gets a text range that encloses the main text of a document.
public ITextRangeProvider DocumentRange { get; }
Gets a value that indicates whether the value of a control is read-only.
public bool IsReadOnly { get; }
SupportedTextSelection
SupportedTextSelection
Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.
public SupportedTextSelection SupportedTextSelection { get; }
Methods
When overridden in a derived class, is called by .
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
The control type, as a value of the enumeration.
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 .
Returns the text label of the FrameworkElement that is associated with this . This method is called by .
protected override string GetNameCore()
The text label of the element that is associated with this automation peer.
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 collection of disjoint text ranges associated with the current text selection or selections.
public ITextRangeProvider[] GetSelection()
ITextRangeProvider[]
Retrieves an array of disjoint text ranges from a text container where each text range begins with the first partially visible line through to the end of the last partially visible line.
public ITextRangeProvider[] GetVisibleRanges()
ITextRangeProvider[]
Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.
public ITextRangeProvider RangeFromChild(IRawElementProviderSimple childElement)
ITextRangeProvider
Returns the degenerate (empty) text range nearest to the specified screen coordinates.
public ITextRangeProvider RangeFromPoint(Point screenLocation)
ITextRangeProvider
Sets the value.