次の方法で共有


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 プロパティがチェックされます。

適用対象