HtmlMenuItemCollection.IndexOf Method

Gets the index of the menu item.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)


Public Function IndexOf ( _
    objItem As HtmlMenuItem _
) As Integer
Dim instance As HtmlMenuItemCollection
Dim objItem As HtmlMenuItem
Dim returnValue As Integer

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


Return Value

Type: System.Int32
A 32-bit signed integer that represents the index of the menu item.

See Also


HtmlMenuItemCollection Class

HtmlMenuItemCollection Members

Microsoft.SharePoint.Portal.WebControls Namespace