UICollectionViewController.ShouldHighlightItem 方法

定义

是否应突出显示指定的项。

[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

参数

collectionView
UICollectionView

此视图控制器管理的集合视图。

indexPath
NSIndexPath

受影响项的索引路径。

返回

true如果应突出显示项,则返回 ;否则返回 false

属性

适用于