Share via


ContextMenuItem Class

Applies to v2.

Represents an item in a context menu.

Inheritance Hierarchy

System.Object
  Microsoft.WebMatrix.Extensibility.ContextMenuItem

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Public Class ContextMenuItem _
    Implements IContextMenuItem
'Usage
Dim instance As ContextMenuItem
public class ContextMenuItem : IContextMenuItem
public ref class ContextMenuItem : IContextMenuItem
type ContextMenuItem =  
    class 
        interface IContextMenuItem 
    end
public class ContextMenuItem implements IContextMenuItem

The ContextMenuItem type exposes the following members.

Constructors

  Name Description
Public method ContextMenuItem Initializes a new instance of the ContextMenuItemclass.

Top

Properties

  Name Description
Public property Command Gets the command to invoke when the button is clicked.
Public property CommandParameter Gets or sets the parameter to pass to the command.
Public property Icon Gets a 16x16 image for the item.
Public property Label Gets a label for the item.

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.WebMatrix.Extensibility Namespace