Upravit

Sdílet prostřednictvím


UICollectionView.ScrollToItem Method

Definition

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

Applies to