UICollectionViewSource.CanFocusItem(UICollectionView, NSIndexPath) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
中的 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
如果项可以聚焦,则返回 。
- 属性