ContextMenuOpeningEventArgs.AddMenuItem 方法
適用於版本2
將 IContextMenuItem 執行個體新增至內容功能表。
命名空間: Microsoft.WebMatrix.Extensibility
組件: Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)
語法
'宣告
Public Overridable Sub AddMenuItem ( _
item As IContextMenuItem _
)
'用途
Dim instance As ContextMenuOpeningEventArgs
Dim item As IContextMenuItem
instance.AddMenuItem(item)
public virtual void AddMenuItem(
IContextMenuItem item
)
public:
virtual void AddMenuItem(
IContextMenuItem^ item
)
abstract AddMenuItem :
item:IContextMenuItem -> unit
override AddMenuItem :
item:IContextMenuItem -> unit
public function AddMenuItem(
item : IContextMenuItem
)
參數
item
型別:Microsoft.WebMatrix.Extensibility.IContextMenuItem要新增的 IContextMenuItem 執行個體。