MenuItemCollection.Item Property

Gets the MenuItem at the specified indexed location in the collection.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As MenuItem
    Get
'Usage
Dim instance As MenuItemCollection
Dim index As Integer
Dim value As MenuItem

value = instance(index)
public MenuItem this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    The indexed location of the MenuItem object in the collection.

Property Value

Type: Microsoft.SharePoint.WebPartPages.MenuItem
Microsoft.SharePoint.WebPartPages.MenuItem. The MenuItem object at the specified index location.

See Also

Reference

MenuItemCollection Class

MenuItemCollection Members

Microsoft.SharePoint.WebPartPages Namespace