Class
RadAutoSuggestBoxAutomationPeer

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:

cs-api-definition
public class RadAutoSuggestBoxAutomationPeer : FrameworkElementAutomationPeer, IValueProvider, ITextProvider

Inheritance: objectRadAutoSuggestBoxAutomationPeer

Implements: ITextProviderIValueProvider

Constructors

RadAutoSuggestBoxAutomationPeer(FrameworkElement)

Initializes a new instance of the RadAutoSuggestBoxAutomationPeer class.

Declaration

cs-api-definition
public RadAutoSuggestBoxAutomationPeer(FrameworkElement owner)

Parameters

owner

FrameworkElement

The owner.

Properties

DocumentRange

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

Declaration

cs-api-definition
public ITextRangeProvider DocumentRange { get; }

Property Value

ITextRangeProvider

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

SupportedTextSelection

Gets a value that specifies whether a text provider supports selection and, if so, the type of selection supported.

Declaration

cs-api-definition
public SupportedTextSelection SupportedTextSelection { get; }

Property Value

SupportedTextSelection

Value

Gets the value of the control.

Declaration

cs-api-definition
public string Value { get; }

Property Value

string

Methods

GetAutomationControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
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

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>

A list of child AutomationPeer elements.

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

The type of the control.

GetNameCore()

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

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

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

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

A value from the enumeration.

Returns

object

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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public ITextRangeProvider RangeFromPoint(Point screenLocation)

Parameters

screenLocation

Point

Returns

ITextRangeProvider

SetValue(string)

Sets the value.

Declaration

cs-api-definition
public void SetValue(string value)

Parameters

value

string

The value.