NSIndexPath.FromItemSection(nint, nint) 方法

定义

根据给定的项和节值创建 NSIndexPath。

[Foundation.Export("indexPathForItem:inSection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSIndexPath FromItemSection (nint item, nint section);
static member FromItemSection : nint * nint -> Foundation.NSIndexPath

参数

item
System.System.IntPtr System.nativeint

项值。

section
System.System.IntPtr System.nativeint

节值。

返回

NSIndexPath 的新实例。

属性

适用于