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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.