Class TextBlock
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class TextBlock : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceTextBlock(WindowsElement)
Initializes a new instance of the TextBlock class.
Declaration
public TextBlock(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceText
Gets the text value of the text block.
Declaration
public virtual string Text { get; }
Property Value
Type | Description |
---|---|
System.String |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to TextBlock)
Allows conversion of a
Declaration
public static implicit operator TextBlock(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
TextBlock | The TextBlock. |
Implicit(RemoteWebElement to TextBlock)
Allows conversion of a
Declaration
public static implicit operator TextBlock(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
TextBlock | The TextBlock. |
Implicit(WindowsElement to TextBlock)
Allows conversion of a
Declaration
public static implicit operator TextBlock(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
TextBlock | The TextBlock. |