New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class RadAutoSuggestBoxAutomationPeer : FrameworkElementAutomationPeer, IValueProvider, ITextProvider

Inheritance: objectRadAutoSuggestBoxAutomationPeer

Implements: ITextProviderIValueProvider

Constructors

Initializes a new instance of the RadAutoSuggestBoxAutomationPeer class.

C#
public RadAutoSuggestBoxAutomationPeer(FrameworkElement owner)
Parameters:ownerFrameworkElement

The owner.

Properties

DocumentRange

ITextRangeProvider

Gets a text range that encloses the main text of a document.

C#
public ITextRangeProvider DocumentRange { get; }

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

C#
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.

C#
public SupportedTextSelection SupportedTextSelection { get; }

Gets the value of the control.

C#
public string Value { get; }

Methods

When overridden in a derived class, is called by .

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

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 .

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

A list of child AutomationPeer elements.

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

Returns the text label of the FrameworkElement that is associated with this . This method is called by .

C#
protected override string GetNameCore()
Returns:

string

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 .

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

A value from the enumeration.

Returns:

object

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.

C#
public ITextRangeProvider[] GetSelection()
Returns:

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.

C#
public ITextRangeProvider[] GetVisibleRanges()
Returns:

ITextRangeProvider[]

Retrieves a text range enclosing a child element such as an image, hyperlink, or other embedded object.

C#
public ITextRangeProvider RangeFromChild(IRawElementProviderSimple childElement)
Parameters:childElementIRawElementProviderSimpleReturns:

ITextRangeProvider

Returns the degenerate (empty) text range nearest to the specified screen coordinates.

C#
public ITextRangeProvider RangeFromPoint(Point screenLocation)
Parameters:screenLocationPointReturns:

ITextRangeProvider

Sets the value.

C#
public void SetValue(string value)
Parameters:valuestring

The value.