Compartir a través de


CellExtensions.GetIndex<TView,TItem>(TItem) Method

Definition

public:
generic <typename TView, typename TItem>
 where TView : Microsoft::Maui::Controls::BindableObject, Microsoft::Maui::Controls::ITemplatedItemsView<TItem> where TItem : Microsoft::Maui::Controls::BindableObject[System::Runtime::CompilerServices::Extension]
 static int GetIndex(TItem cell);
public static int GetIndex<TView,TItem> (this TItem cell) where TView : Microsoft.Maui.Controls.BindableObject, Microsoft.Maui.Controls.ITemplatedItemsView<TItem> where TItem : Microsoft.Maui.Controls.BindableObject;
static member GetIndex : 'Item -> int (requires 'View :> Microsoft.Maui.Controls.BindableObject and 'View :> Microsoft.Maui.Controls.ITemplatedItemsView<'Item> and 'Item :> Microsoft.Maui.Controls.BindableObject)
<Extension()>
Public Function GetIndex(Of TView As {BindableObject, ITemplatedItemsView(Of TItem)}, TItem As {BindableObject, ITemplatedItemsView(Of TItem)}) (cell As TItem) As Integer

Type Parameters

TView
TItem

Parameters

cell
TItem

Returns

Applies to