Share via


ICollectionView.MoveCurrentTo(Object) 方法

定义

将指定项设置为视图中的 CurrentItem

public:
 bool MoveCurrentTo(Platform::Object ^ item);
bool MoveCurrentTo(IInspectable const& item);
public bool MoveCurrentTo(object item);
function moveCurrentTo(item)
Public Function MoveCurrentTo (item As Object) As Boolean

参数

item
Object

Platform::Object

IInspectable

要设置为 CurrentItem 的项。

返回

Boolean

bool

如果生成的 CurrentItem 位于视图中,则为 true;否则为 false

适用于