UICollectionViewController.GetTargetContentOffset 方法

定义

重写时,允许开发人员修改布局和动画更改的内容偏移量。

[Foundation.Export("collectionView:targetContentOffsetForProposedContentOffset:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGPoint GetTargetContentOffset (UIKit.UICollectionView collectionView, CoreGraphics.CGPoint proposedContentOffset);
abstract member GetTargetContentOffset : UIKit.UICollectionView * CoreGraphics.CGPoint -> CoreGraphics.CGPoint
override this.GetTargetContentOffset : UIKit.UICollectionView * CoreGraphics.CGPoint -> CoreGraphics.CGPoint

参数

collectionView
UICollectionView

发起请求的集合视图。

proposedContentOffset
CGPoint

返回

属性

适用于