UITestExtensions.Unit_AppendText (System.Windows.Controls.TextBox, System.String)
Function adds text to the current text of a TextBox
Namespace:SoftHai.Testing.UITestAssembly:SoftHai.Testing
Syntax
Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_AppendText( _
ByVal TB As System.Windows.Controls.TextBox, _
ByVal pText As System.String _
)
C#
[ExtensionAttribute()]
public void Unit_AppendText(
this System.Windows.Controls.TextBox TB,
System.String pText
)
Parameter
TBType:
System.Windows.Controls.TextBoxRecent TextBox
ptextType:
System.StringText value to be added
Remarks
Example
First, the namespace is imported, so that the extension methods are available:
C#
using SoftHai.Testing.UITest;
Visual Basic
Imports SoftHai.Testing.UITest
Subsequently, the extension method be used as follows:
C#
TextBox TB = new TextBox();
...
TB.Unit_AppendText("Text to append");
Visual Basic
Dim CB as new TextBox()
...
TB.Unit_AppendText("Text to append")
This WikiPage was created with
Codeplex WikiEditor