Поделиться через


UICollectionViewDelegate_Extensions.CanFocusItem Метод

Определение

Можно ли сфокусировать элемент в indexPath .

[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

Параметры

This
IUICollectionViewDelegate

Экземпляр, с которым работает этот метод расширения.

collectionView
UICollectionView

связан UICollectionView с this.

indexPath
NSIndexPath

Объект NSIndexPath проверяемого элемента.

Возвращаемое значение

Возвращает значение true , если элемент может быть сфокусироваться.

Атрибуты

Комментарии

Если этот метод не реализован, свойство элемента CanBecomeFocused будет проверено.

Применяется к