共用方式為


MenuItem members

Include protected members
Include inherited members

用來建立及修改網頁組件] 功能表上的項目行為。

The MenuItem type exposes the following members.

Constructors

  Name Description
Public method MenuItem(String, String) 初始化MenuItem類別的新執行個體。
Public method MenuItem(String, String, EventHandler) 初始化MenuItem類別的新執行個體。
Public method MenuItem(String, String, String) 初始化MenuItem類別的新執行個體。

Top

Properties

  Name Description
Public property BeginSection 取得或設定是否要建立或刪除上方的功能表項目分隔線。
Public property Caption 取得或設定功能表項目會在顯示的文字標題。
Public property Checked 取得或設定是否要以視覺方式顯示的功能表項目] 旁的核取記號表示。
Public property ClientEvent 取得或設定用戶端 Microsoft JScript 程式碼來執行此功能表項目會在按一下時。
Public property Enabled 取得或設定是否已啟用的功能表項目。
Public property IsParent 取得是否功能表項目包含子功能表項目。
Public property MenuID 取得或設定的網頁組件功能表項目的唯一識別碼。允許 token 取代。
Public property MenuItems 取得補償] 子功能表MenuItem物件的集合。
Public property OnClick 取得或設定伺服器端函數,以執行的伺服器端的功能表項目。
Public property Visible 取得或設定是否顯示的功能表項目。

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

請參閱

參照

MenuItem class

Microsoft.SharePoint.WebPartPages namespace