MenuItemCollection.Item property
取得指定索引處的集合中的MenuItem 。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Default Property Item ( _
index As Integer _
) As MenuItem
Get
'用途
Dim instance As MenuItemCollection
Dim index As Integer
Dim value As MenuItem
value = instance(index)
public MenuItem this[
int index
] { get; }
參數
index
Type: System.Int32集合中的MenuItem物件索引的位置。
Property value
Type: Microsoft.SharePoint.WebPartPages.MenuItem
Microsoft.SharePoint.WebPartPages.MenuItem。位於指定的索引位置的MenuItem物件。