Intersoft ClientUI Documentation
MoveCurrentToPosition Method



The index to set the System.Windows.Data.PagedCollectionView.CurrentItem to.
Sets the item at the specified index to be the System.Windows.Data.PagedCollectionView.CurrentItem in the view.
Syntax
Public Function MoveCurrentToPosition( _
   ByVal position As Integer _
) As Boolean
Dim instance As PagedCollectionView
Dim position As Integer
Dim value As Boolean
 
value = instance.MoveCurrentToPosition(position)
public bool MoveCurrentToPosition( 
   int position
)
public:
bool MoveCurrentToPosition( 
   int position
) 

Parameters

position
The index to set the System.Windows.Data.PagedCollectionView.CurrentItem to.

Return Value

true if the resulting System.Windows.Data.PagedCollectionView.CurrentItem is an item in the view; otherwise, false.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionposition is less than -1 or greater than the System.Windows.Data.PagedCollectionView.Count of items in the view.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PagedCollectionView Class
PagedCollectionView Members

Send Feedback