UICollectionView.IndexPathForCell(UICollectionViewCell) 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.
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