UITestExtensions.Unit_ScrollToItem (System.Windows.Controls.ListBox, System.Int32)

Function scroll to a given item

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

Syntax

Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_ScrollToItem( _
	ByVal LB As System.Windows.Controls.ListBox, _
	ByVal pScrollToItemIndex As System.Int32 _
)
C#
[ExtensionAttribute()]
public void Unit_ScrollToItem(
	this System.Windows.Controls.ListBox LB, 
	System.Int32 pScrollToItemIndex
)

Parameter

LB
Type:System.Windows.Controls.ListBox
Current ListBox
pScrollToItemIndex
Type:System.Int32
Of the item should be scrolled to the

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_ScrollToItem(5);
Visual Basic
Dim LB as new ListBox()
...
LB.Unit_ScrollToItem(5)




This WikiPage was created with Codeplex WikiEditor

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

Comments

No comments yet.