UICollectionView.ScrollToItem 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.
Scrollls the UICollectionView so that the desired element is visible.
[Foundation.Export("scrollToItemAtIndexPath:atScrollPosition:animated:")]
public virtual void ScrollToItem (Foundation.NSIndexPath indexPath, UIKit.UICollectionViewScrollPosition scrollPosition, bool animated);
abstract member ScrollToItem : Foundation.NSIndexPath * UIKit.UICollectionViewScrollPosition * bool -> unit
override this.ScrollToItem : Foundation.NSIndexPath * UIKit.UICollectionViewScrollPosition * bool -> unit
Parameters
- indexPath
- NSIndexPath
The NSIndexPath of the desired element.
- scrollPosition
- UICollectionViewScrollPosition
Where the item should be positioned after scrolling stops.
- animated
- Boolean
true
if the scrolling should be animated.
- Attributes