ClassTextBox
Definition
Namespace:ArtOfTest.WebAii.Controls.Xaml.Wpf
Assembly:ArtOfTest.WebAii.dll
Syntax:
public class TextBox : TextBoxBase, IAutomationPeer, IPeerConverter, IControl, ITextBox, IFrameworkElement, ITargetElement
Inheritance: objectAutomationObject<FrameworkElement>FrameworkElementWpfTestElementControlTextBoxBaseTextBox
Derived Classes:
Implements:
Inherited Members
Constructors
TextBox()
Declaration
public TextBox()
Fields
CharacterCasingProperty
Declaration
public static AutomationProperty CharacterCasingProperty
Field Value
MaxLengthProperty
Declaration
public static AutomationProperty MaxLengthProperty
Field Value
MaxLinesProperty
Declaration
public static AutomationProperty MaxLinesProperty
Field Value
MinLinesProperty
Declaration
public static AutomationProperty MinLinesProperty
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
CharacterCasing
Declaration
public CharacterCasing CharacterCasing { get; set; }
Property Value
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