共用方式為


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

UICollectionViewthis 相關聯。

indexPath
NSIndexPath

NSIndexPath正在檢查之專案的 。

傳回

如果專案可以聚焦,則傳 true 回 。

屬性

適用於