ContextMenuOpeningEventArgs.AddMenuItem-Methode
Die folgenden Ausführungen gelten für v2.
Fügt dem Kontextmenü eine IContextMenuItem-Instanz hinzu.
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
)
Parameter
item
Typ: Microsoft.WebMatrix.Extensibility.IContextMenuItemDie hinzuzufügende IContextMenuItem-Instanz.