다음을 통해 공유


UICollectionView.ScrollToItem 메서드

정의

UICollectionView 원하는 요소가 표시되도록 를 스크롤합니다.

[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

매개 변수

indexPath
NSIndexPath

NSIndexPath 원하는 요소의 입니다.

scrollPosition
UICollectionViewScrollPosition

스크롤이 중지된 후 항목을 배치해야 하는 위치입니다.

animated
Boolean

true 스크롤에 애니메이션 효과를 주어야 하면 입니다.

특성

적용 대상