UITestExtensions.Unit_AppendText (System.Windows.Controls.TextBox, System.String)

Function adds text to the current text of a TextBox

Namespace:SoftHai.Testing.UITest
Assembly: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

TB
Type:System.Windows.Controls.TextBox
Recent TextBox
ptext
Type:System.String
Text 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

Last edited Jul 19, 2010 at 9:29 AM by SoftHai, version 3

Comments

No comments yet.