UICollectionViewSource.CanFocusItem(UICollectionView, NSIndexPath) 方法

定义

中的 indexPath 项是否可以聚焦。

[Foundation.Export("collectionView:canFocusItemAtIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool CanFocusItem (UIKit.UICollectionView collectionView, Foundation.NSIndexPath indexPath);
abstract member CanFocusItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool
override this.CanFocusItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool

参数

collectionView
UICollectionView

UICollectionView 相关联 this

indexPath
NSIndexPath

NSIndexPath正在检查的项的 。

返回

true如果项可以聚焦,则返回 。

属性

适用于