UICollectionViewController.ShouldHighlightItem Méthode

Définition

Indique si l’élément spécifié doit être mis en surbrillance.

[Foundation.Export("collectionView:shouldHighlightItemAtIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldHighlightItem (UIKit.UICollectionView collectionView, Foundation.NSIndexPath indexPath);
abstract member ShouldHighlightItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool
override this.ShouldHighlightItem : UIKit.UICollectionView * Foundation.NSIndexPath -> bool

Paramètres

collectionView
UICollectionView

Vue de regroupement gérée par ce contrôleur d’affichage.

indexPath
NSIndexPath

Chemin d’accès à l’index de l’élément affecté.

Retours

Retourne true si l’élément doit être mis en surbrillance, false si ce n’est pas le cas.

Attributs

S’applique à