ClassTextBox
Wraps a TextBox element.
Definition
Namespace:ArtOfTest.WebAii.Silverlight.UI
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class TextBox : Control, IAutomationPeer, IPeerConverter, IControl, ITextBox, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementSilverlightTestElementControlTextBox
Derived Classes:
Implements:
Inherited Members
Constructors
TextBox()
Declaration
public TextBox()
Fields
AcceptsReturnProperty
Declaration
public static AutomationProperty AcceptsReturnProperty
Field Value
CaretBrushProperty
Declaration
public static AutomationProperty CaretBrushProperty
Field Value
InputScopeProperty
Declaration
public static AutomationProperty InputScopeProperty
Field Value
IsReadOnlyProperty
Declaration
public static AutomationProperty IsReadOnlyProperty
Field Value
MaxLengthProperty
Declaration
public static AutomationProperty MaxLengthProperty
Field Value
SelectionBackgroundProperty
Declaration
public static AutomationProperty SelectionBackgroundProperty
Field Value
SelectionForegroundProperty
Declaration
public static AutomationProperty SelectionForegroundProperty
Field Value
TextAlignmentProperty
Declaration
public static AutomationProperty TextAlignmentProperty
Field Value
TextProperty
Declaration
public static AutomationProperty TextProperty
Field Value
TextWrappingProperty
Declaration
public static AutomationProperty TextWrappingProperty
Field Value
Properties
Text
Get/set the text of the TextBox via automation property.
TextAlignment
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
TextWrapping
Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
Methods
GetRealType()
Gets the real object type. This property returns string.empty on FrameworkElement and all subclasses that inherit from it.
SetText(bool, string, int, int, bool, bool)
Sets or types a new text into the TextBox.
Declaration
public void SetText(bool simulateRealUser, string text, int keyPressTime, int keyHoldTime, bool fireKeyEvents, bool clearCurrentText = true)
Parameters
simulateRealUser
If true, simulates typing, otherwise simply replaces the text.
text
The text to set/type.
keyPressTime
The delay between each press
keyHoldTime
The delay between pressing and releasing each key
fireKeyEvents
If true fires KeyDown and KeyUp events during simulated typing. Not compatible with Unicode text input.
clearCurrentText
If true clears text before simulated typing.
Implements