In This Article

AutoCompleteBoxAutomationPeer Class

Exposes AutoCompleteBox types to UI Automation.

public class AutoCompleteBoxAutomationPeer : FrameworkElementAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object

Constructors

AutoCompleteBoxAutomationPeer(AutoCompleteBox)

Initializes a new instance of the AutoCompleteBoxAutomationPeer class.

public AutoCompleteBoxAutomationPeer(AutoCompleteBox owner)
Parameter Type Description
owner AutoCompleteBox

The owner element.

Properties

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

IsReadOnly

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

public bool IsReadOnly { get; }

Property Value

bool:

true if the value is read-only; false if it can be modified.

Value

Gets the value of the control.

public string Value { get; }

Property Value

string:

The value of the control.

Methods

Collapse()

Hides all nodes, controls, or content that are descendants of the control.

public void Collapse()

Expand()

Displays all child nodes, controls, or content of the control.

public void Expand()

GetAutomationControlTypeCore()

Gets the control type for the element that is associated with the UI Automation peer.

protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType:

The control type.

GetClassNameCore()

Gets a name that is used with AutomationControlType, to differentiate the control that is represented by this AutomationPeer.

protected override string GetClassNameCore()

Returns

string:

The class name.

GetLocalizedControlTypeCore()

Gets a localized string that represents the AutomationControlType value for the control that is associated with this automation peer.

protected override string GetLocalizedControlTypeCore()

Returns

string:

The control type.

GetPattern(PatternInterface)

Gets the control pattern that is associated with the specified PatternInterface.

public override object GetPattern(PatternInterface patternInterface)
Parameter Type Description
patternInterface PatternInterface

A value from the PatternInterface enumeration.

Returns

object:

The object that implements the pattern interface; null if the peer does not support this interface.

SetValue(string)

Sets the value of a control.

public void SetValue(string value)
Parameter Type Description
value string

The value to set. The provider is responsible for converting the value to the appropriate data type.