UITestExtensions.Unit_SetSlider (System.Windows.Controls.Slider, System.Double)

Function set the value of a Slider

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

Syntax

Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_SetSlider( _
	ByVal S As System.Windows.Controls.Slider, _
	ByVal pNewValue As System.Double _
)
C#
[ExtensionAttribute()]
public void Unit_SetSlider(
	this System.Windows.Controls.Slider S, 
	System.Double pNewValue
)

Parameter

S
Type:System.Windows.Controls.Slider
News Slider Control
pNewValue
Type:System.Double
to be of value to the slider 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#
Slider S = new Slider();
...
S.Unit_SetSlider(10);
Visual Basic
Dim CB as new Slider()
...
S.Unit_SetSlider(10)




This WikiPage was created with Codeplex WikiEditor

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

Comments

No comments yet.