Edit

Share via


UICollectionView.IndexPathForCell(UICollectionViewCell) Method

Definition

Returns the NSIndexPath for the cell.

[Foundation.Export("indexPathForCell:")]
public virtual Foundation.NSIndexPath IndexPathForCell (UIKit.UICollectionViewCell cell);
abstract member IndexPathForCell : UIKit.UICollectionViewCell -> Foundation.NSIndexPath
override this.IndexPathForCell : UIKit.UICollectionViewCell -> Foundation.NSIndexPath

Parameters

cell
UICollectionViewCell

The UICollectionViewCell for which the index is desired.

Returns

The NSIndexPath of the specified UICollectionViewCell. Returns null f the cell is not in this UICollectionView

Attributes

Applies to