Share via


SwipeItems.IndexOf(SwipeItem, UInt32) 方法

定义

检索指定项的索引。

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

bool IndexOf(SwipeItem const& value, [Out] uint32_t & index);
public bool IndexOf(SwipeItem value, out uint index);
Public Function IndexOf (value As SwipeItem, ByRef index As UInteger) As Boolean

参数

value
SwipeItem

要在集合中找到的值。

index
UInt32

uint32_t

要查找的项的索引(如果找到)。

返回

Boolean

bool

如果找到具有指定值的项,则为 true;否则为 false

实现

M:Windows.Foundation.Collections.IVector1.IndexOf(0,System.UInt32@) M:Windows.Foundation.Collections.IVector1.IndexOf(0,uint32_t@)

适用于