共用方式為


MenuItemCollection members

Include protected members
Include inherited members

用來新增、 刪除及排列網頁組件] 功能表中顯示的功能表項目。

The MenuItemCollection type exposes the following members.

Properties

  Name Description
Public property Capacity (Inherited from CollectionBase.)
Public property Count (Inherited from CollectionBase.)
Protected property InnerList (Inherited from CollectionBase.)
Public property Item 取得指定索引處的集合中的MenuItem 。
Protected property List (Inherited from CollectionBase.)

Top

Methods

  Name Description
Public method Add 將先前建立的MenuItem加入至目前的功能表結尾。
Public method AddRange 將先前建立的MenuItem物件的陣列加入至集合。
Public method Clear (Inherited from CollectionBase.)
Public method Contains 判斷指定的MenuItem是否為集合的成員。
Public method CopyTo 將整個集合複製到指定索引處開始的一維陣列。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator 傳回可以逐一查看集合的列舉值。
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf 擷取特定的項目集合中的第一個索引。
Public method Insert 將先前建立的MenuItem加入功能表項目集合中指定索引處。
Public method ItemFromID 傳回一個集合和所有集合中的MenuItem ,具有相符參數識別碼。
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnClear (Inherited from CollectionBase.)
Protected method OnClearComplete (Inherited from CollectionBase.)
Protected method OnInsert (Inherited from CollectionBase.)
Protected method OnInsertComplete (Inherited from CollectionBase.)
Protected method OnRemove (Inherited from CollectionBase.)
Protected method OnRemoveComplete (Inherited from CollectionBase.)
Protected method OnSet (Inherited from CollectionBase.)
Protected method OnSetComplete (Inherited from CollectionBase.)
Protected method OnValidate (Inherited from CollectionBase.)
Public method Remove 從集合中刪除指定的MenuItem的第一個執行個體。
Public method RemoveAt (Inherited from CollectionBase.)
Public method Replace 第二個MenuItem參數來取代第一個MenuItem參數的第一個執行個體。
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.Item (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from CollectionBase.)

Top

請參閱

參照

MenuItemCollection class

Microsoft.SharePoint.WebPartPages namespace