ContextMenuOpeningEventArgs Class

Applies to v2.

Represents the event arguments for a context-menu opening event.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.WebMatrix.Extensibility.ContextMenuOpeningEventArgs

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

Syntax

'Declaration
Public Class ContextMenuOpeningEventArgs _
    Inherits EventArgs
'Usage
Dim instance As ContextMenuOpeningEventArgs
public class ContextMenuOpeningEventArgs : EventArgs
public ref class ContextMenuOpeningEventArgs : public EventArgs
type ContextMenuOpeningEventArgs =  
    class 
        inherit EventArgs 
    end
public class ContextMenuOpeningEventArgs extends EventArgs

The ContextMenuOpeningEventArgs type exposes the following members.

Constructors

  Name Description
Public method ContextMenuOpeningEventArgs Initializes a new instance of the ContextMenuOpeningEventArgs class.

Top

Properties

  Name Description
Public property AddedMenuItems Gets a sequence of IContextMenuItem instances that were added to the context menu.
Public property Items Gets the site item for which the context menu is opening.

Top

Methods

  Name Description
Public method AddMenuItem Adds an IContextMenuItem instance to the context menu.
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