Modifier

Partager via


UICollectionView.IndexPathForItemAtPoint(CGPoint) Method

Definition

Returns the NSIndexPath for the point.

[Foundation.Export("indexPathForItemAtPoint:")]
public virtual Foundation.NSIndexPath IndexPathForItemAtPoint (CoreGraphics.CGPoint point);
abstract member IndexPathForItemAtPoint : CoreGraphics.CGPoint -> Foundation.NSIndexPath
override this.IndexPathForItemAtPoint : CoreGraphics.CGPoint -> Foundation.NSIndexPath

Parameters

point
CGPoint

The location in this UICollectionView for which the index is desired.

Returns

The NSIndexPath of the specified PointF. Returns null f there is no component view at the specified location.

Attributes

Remarks

This method relies on the values returned by the current UICollectionViewLayout.

Applies to