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

Provides the automation peer for the RadWatermarkTextBox control, enabling UI Automation support for properties and actions related to watermark text boxes. This class implements the IValueProvider interface, allowing access to the value of the text box, including the watermark content, and enables setting its value. It supports features such as custom property retrieval, indicating control type, and value change events to enhance automation client interactions.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class RadWatermarkTextBoxAutomationPeer : TextBoxAutomationPeer, IValueProvider

Inheritance: objectRadWatermarkTextBoxAutomationPeer

Derived Classes: RadPasswordBoxAutomationPeer

Implements: IValueProvider

Constructors

Initializes a new instance of the RadWatermarkTextBoxAutomationPeer class.

C#
public RadWatermarkTextBoxAutomationPeer(RadWatermarkTextBox owner)
Parameters:ownerRadWatermarkTextBox

The owner.

Properties

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

C#
public bool IsReadOnly { get; }
Property Value:

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

Gets the value of the control.

C#
public string Value { get; }
Property Value:

The value of the control as a string.

Methods

When overridden in a derived class, is called by .

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

The type of the control.

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

List<AutomationPeer>

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.

C#
protected override string GetNameCore()
Returns:

string

Gets the pattern.

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

object

Sets the value of a control.

C#
public virtual void SetValue(string value)
Parameters:valuestringExceptions:

InvalidOperationException

If locale-specific information is passed to a control in an incorrect format such as an incorrectly formatted date.

ArgumentException

If a new value cannot be converted from a string to a format the control recognizes.

When an attempt is made to manipulate a control that is not enabled.