UITestExtensions.Unit_Scroll (System.Windows.Controls.ListBox, System.Windows.Automation.ScrollAmount, System.Windows.Automation.ScrollAmount)
Function results in a scrolling in a ListBox by
Namespace:SoftHai.Testing.UITestAssembly:SoftHai.Testing
Syntax
Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_Scroll( _
ByVal LB As System.Windows.Controls.ListBox, _
ByVal pHorizontal As System.Windows.Automation.ScrollAmount, _
ByVal pVertical As System.Windows.Automation.ScrollAmount _
)
C#
[ExtensionAttribute()]
public void Unit_Scroll(
this System.Windows.Controls.ListBox LB,
System.Windows.Automation.ScrollAmount pHorizontal,
System.Windows.Automation.ScrollAmount pVertical
)
Parameter
LBType:
System.Windows.Controls.ListBoxCurrent ListBox
pHorizontalType:
System.Windows.Automation.ScrollAmountScroll direction and magnitude in the direction horizotaler
pVerticalType:
System.Windows.Automation.ScrollAmountScroll direction and magnitude in a vertical direction
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#
ListBox LB = new ListBox();
...
LB.Unit_Scroll(ScrollAmount.LargeDecrement, ScrollAmount.NoAmount);
Visual Basic
Dim LB as new ListBox()
...
LB.Unit_Scroll(ScrollAmount.LargeDecrement, ScrollAmount.NoAmount)
This WikiPage was created with
Codeplex WikiEditor