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
回 。
- 屬性