Поделиться через


UICollectionViewController.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)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, 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

Индекс в заголовках индекса, для которых требуется получить путь к индексу.

Возвращаемое значение

Атрибуты

Применяется к