UITestExtensions.Unit_SetSlider (System.Windows.Controls.Slider, System.Double)
Function set the value of a Slider
Namespace:SoftHai.Testing.UITestAssembly: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
SType:
System.Windows.Controls.SliderNews Slider Control
pNewValueType:
System.Doubleto 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