Class TextBox
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class TextBox : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceTextBox(WindowsElement)
Initializes a new instance of the TextBox class.
Declaration
public TextBox(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceIsReadonly
Gets a value indicating whether the text box is in a readonly state.
Declaration
public virtual bool IsReadonly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Text
Gets the text value of the text box.
Declaration
public virtual string Text { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceAppendText(String)
Appends the specified text to the text box.
Declaration
public virtual void AppendText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to append. |
ClearText()
Clears the text from the text box.
Declaration
public virtual void ClearText()
SetText(String)
Sets the text of the text box to the specified text.
Declaration
public virtual void SetText(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to display. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to TextBox)
Allows conversion of a
Declaration
public static implicit operator TextBox(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
TextBox | The TextBox. |
Implicit(RemoteWebElement to TextBox)
Allows conversion of a
Declaration
public static implicit operator TextBox(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
TextBox | The TextBox. |
Implicit(WindowsElement to TextBox)
Allows conversion of a
Declaration
public static implicit operator TextBox(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
TextBox | The TextBox. |