NSCollectionView.GetIndexPath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GetIndexPath(NSCollectionViewItem) | |
| GetIndexPath(CGPoint) |
GetIndexPath(NSCollectionViewItem)
[Foundation.Export("indexPathForItem:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSIndexPath? GetIndexPath(AppKit.NSCollectionViewItem item);
[<Foundation.Export("indexPathForItem:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetIndexPath : AppKit.NSCollectionViewItem -> Foundation.NSIndexPath
override this.GetIndexPath : AppKit.NSCollectionViewItem -> Foundation.NSIndexPath
Parameters
- item
- NSCollectionViewItem
Returns
- Attributes
Applies to
GetIndexPath(CGPoint)
[Foundation.Export("indexPathForItemAtPoint:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSIndexPath? GetIndexPath(CoreGraphics.CGPoint point);
[<Foundation.Export("indexPathForItemAtPoint:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetIndexPath : CoreGraphics.CGPoint -> Foundation.NSIndexPath
override this.GetIndexPath : CoreGraphics.CGPoint -> Foundation.NSIndexPath
Parameters
- point
- CGPoint
Returns
- Attributes