Partager via


HtmlMenuItemCollection.IndexOf, méthode (Microsoft.SharePoint.Portal.WebControls)

Gets the index of the menu item.

Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)

Syntaxe

'Déclaration
Public Function IndexOf ( _
    objItem As HtmlMenuItem _
) As Integer
'Utilisation
Dim instance As HtmlMenuItemCollection
Dim objItem As HtmlMenuItem
Dim returnValue As Integer

returnValue = instance.IndexOf(objItem)
public int IndexOf (
    HtmlMenuItem objItem
)

Paramètres

  • objItem
    Object that contains the menu item.

Valeur de retour

A 32-bit signed integer that represents the index of the menu item.

Voir aussi

Référence

HtmlMenuItemCollection, classe
Membres HtmlMenuItemCollection
Microsoft.SharePoint.Portal.WebControls, espace de noms