HtmlMenuItemCollection.Add Method
Adds a menu item to a menu.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Function Add ( _
objItem As HtmlMenuItem _
) As Integer
'Usage
Dim instance As HtmlMenuItemCollection
Dim objItem As HtmlMenuItem
Dim returnValue As Integer
returnValue = instance.Add(objItem)
public int Add(
HtmlMenuItem objItem
)
Parameters
- objItem
Type: Microsoft.SharePoint.Portal.WebControls.HtmlMenuItem
Object that contains the menu item that is added to the menu.
Return Value
Type: System.Int32
A 32-bit signed integer that represents the index of the menu item added to the collection.