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
Colabore connosco no GitHub
A origem deste conteúdo pode ser encontrada no GitHub, onde também pode criar e rever problemas e pedidos Pull. Para mais informações, consulte o nosso guia do contribuidor.