ClassRadAutoSuggestBoxAutomationPeer
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
RadAutoSuggestBoxAutomationPeer(FrameworkElement)
Initializes a new instance of the RadAutoSuggestBoxAutomationPeer class.
Declaration
public RadAutoSuggestBoxAutomationPeer(FrameworkElement owner)
Parameters
owner
FrameworkElement
The owner.
Properties
DocumentRange
Gets a text range that encloses the main text of a document.
Declaration
public ITextRangeProvider DocumentRange { get; }
Property Value
ITextRangeProvider
IsReadOnly
Gets a value that indicates whether the value of a control is read-only.
SupportedTextSelection
Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.
Declaration
public SupportedTextSelection SupportedTextSelection { get; }
Property Value
SupportedTextSelection
Methods
GetAutomationControlTypeCore()
When overridden in a derived class, is called by .
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
The control type, as a value of the enumeration.
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.
GetNameCore()
Returns the text label of the FrameworkElement that is associated with this . This method is called by .
Declaration
protected override string GetNameCore()
Returns
The text label of the element that is associated with this automation peer.
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 collection of disjoint text ranges associated with the current text selection or selections.
Declaration
public ITextRangeProvider[] GetSelection()
Returns
ITextRangeProvider[]
GetVisibleRanges()
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.
Declaration
public ITextRangeProvider[] GetVisibleRanges()
Returns
ITextRangeProvider[]
RangeFromChild(IRawElementProviderSimple)
Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.
Declaration
public ITextRangeProvider RangeFromChild(IRawElementProviderSimple childElement)
Parameters
childElement
IRawElementProviderSimple
Returns
ITextRangeProvider
RangeFromPoint(Point)
Returns the degenerate (empty) text range nearest to the specified screen coordinates.
Declaration
public ITextRangeProvider RangeFromPoint(Point screenLocation)
Parameters
screenLocation
Point
Returns
ITextRangeProvider
SetValue(string)
Sets the value.