MenuItem.Enabled property
取得或設定是否已啟用的功能表項目。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property Enabled As Boolean
Get
Set
'用途
Dim instance As MenuItem
Dim value As Boolean
value = instance.Enabled
instance.Enabled = value
public bool Enabled { get; set; }
Property value
Type: System.Boolean
true如果已啟用的功能表項目 ;否則,請false。預設值為true。