UICollectionViewDelegate_Extensions.CanFocusItem 方法

定义

中的 indexPath 项是否可以聚焦。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool CanFocusItem (this UIKit.IUICollectionViewDelegate This, UIKit.UICollectionView collectionView, Foundation.NSIndexPath indexPath);
static member CanFocusItem : UIKit.IUICollectionViewDelegate * UIKit.UICollectionView * Foundation.NSIndexPath -> bool

参数

This
IUICollectionViewDelegate

此扩展方法在其上运行的实例。

collectionView
UICollectionView

UICollectionView 关联 this

indexPath
NSIndexPath

NSIndexPath正在检查的项的 。

返回

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

属性

注解

如果未实现此方法,则将检查项的 CanBecomeFocused 属性。

适用于