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

Function Sets the text of a TextBox

Namespace:SoftHai.Testing.UITest
Assembly:SoftHai.Testing

Syntax

Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_SetText( _
	ByVal TB As System.Windows.Controls.TextBox, _
	ByVal pText As System.String _
)
C#
[ExtensionAttribute()]
public void Unit_SetText(
	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 set

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_SetText("Text to set");
Visual Basic
Dim CB as new TextBox()
...
TB.Unit_SetText("Text to set")




This WikiPage was created with Codeplex WikiEditor

Last edited Jul 19, 2010 at 10:11 AM by SoftHai, version 1

Comments

No comments yet.