Intersoft ClientUI Documentation
MoveCurrentToPosition Method
See Also  Send Feedback
Intersoft.Client.Data.ComponentModel Namespace > PagedCollectionView Class : MoveCurrentToPosition Method






position
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

Visual Basic (Declaration) 
Public Function MoveCurrentToPosition( _
   ByVal position As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PagedCollectionView
Dim position As Integer
Dim value As Boolean
 
value = instance.MoveCurrentToPosition(position)
C# 
public bool MoveCurrentToPosition( 
   int position
)
Delphi 
public function MoveCurrentToPosition( 
    position: Integer
): Boolean; 
JScript 
public function MoveCurrentToPosition( 
   position : int
) : boolean;
Managed Extensions for C++ 
public: bool MoveCurrentToPosition( 
   int position
) 
C++/CLI 
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.ArgumentOutOfRangeException is less than -1 or greater than the of items in the view.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.