共用方式為


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 的新實例。

屬性

適用於