UICollectionViewDataSource.GetIndexPath 方法

定义

请求集合视图中具有指定标题的指定索引处的项的索引路径。

[Foundation.Export("collectionView:indexPathForIndexTitle:atIndex:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 3, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 2, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSIndexPath GetIndexPath (UIKit.UICollectionView collectionView, string title, nint atIndex);
abstract member GetIndexPath : UIKit.UICollectionView * string * nint -> Foundation.NSIndexPath
override this.GetIndexPath : UIKit.UICollectionView * string * nint -> Foundation.NSIndexPath

参数

collectionView
UICollectionView

发起请求的集合视图。

title
String

项的标题。

atIndex
System.System.IntPtr System.nativeint

要检索其索引路径的索引标题中的索引。

返回

属性

适用于