Partager via


UICollectionViewDelegate_Extensions.CanFocusItem Méthode

Définition

Indique si l’élément sur indexPath peut être concentré.

[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

Paramètres

This
IUICollectionViewDelegate

Instance sur laquelle cette méthode d’extension fonctionne.

collectionView
UICollectionView

est UICollectionView associé thisà .

indexPath
NSIndexPath

de NSIndexPath l’élément en cours de vérification.

Retours

Retourne true si l’élément peut être concentré.

Attributs

Remarques

Si cette méthode n’est pas implémentée, la propriété de l’élément CanBecomeFocused est vérifiée.

S’applique à