ContextMenuOpeningEventArgs.AddMenuItem Method
Applies to v2.
Adds an IContextMenuItem instance to the context menu.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Public Overridable Sub AddMenuItem ( _
item As IContextMenuItem _
)
'Usage
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
)
Parameters
item
Type: Microsoft.WebMatrix.Extensibility.IContextMenuItemThe IContextMenuItem instance to add.