UIKit.UICollectionView.SelectItem Method
Selects a UIKit.UICollectionViewCell and optionally scrolls to make it visible.

Syntax

[Foundation.Export("selectItemAtIndexPath:animated:scrollPosition:")]
public virtual void SelectItem (Foundation.NSIndexPath indexPath, bool animated, UICollectionViewScrollPosition scrollPosition)

Parameters

indexPath
The Foundation.NSIndexPath of the desired element.
animated
true if the selection change should be animated.
scrollPosition
Where the item should be positioned after scrolling finishes.

Remarks

This method does nothing if UICollectionView.AllowsSelection is false. This method deselects the currently selected element if UICollectionView.AllowsMultipleSelection is false.

This method does not trigger calls to any selection-related delegate methods (e.g., UICollectionViewDelegate.ItemSelected or UICollectionViewDelegate.ItemDeselected).

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0