CellExtensions.GetIndex<TView,TItem>(TItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.