ImageGear .NET v24.12 - Updated
OnContextMenu Property




ImageGear24.Web Assembly > ImageGear.Web.UI Namespace > PageView Class : OnContextMenu Property
Gets or sets user defined Javascript event handler to receive client events that indicate when the user activates the context menu.
Syntax
'Declaration
 
<DescriptionAttribute("A user defined Javascript event handler to receive the Client contextMenu Event.")>
<CategoryAttribute("Client PageView Control Events")>
Public Property OnContextMenu As String
'Usage
 
Dim instance As PageView
Dim value As String
 
instance.OnContextMenu = value
 
value = instance.OnContextMenu
[Description("A user defined Javascript event handler to receive the Client contextMenu Event.")]
[Category("Client PageView Control Events")]
public string OnContextMenu {get; set;}
[Description("A user defined Javascript event handler to receive the Client contextMenu Event.")]
[Category("Client PageView Control Events")]
public: __property string* get_OnContextMenu();
public: __property void set_OnContextMenu( 
   string* value
);
[Description("A user defined Javascript event handler to receive the Client contextMenu Event.")]
[Category("Client PageView Control Events")]
public:
property String^ OnContextMenu {
   String^ get();
   void set (    String^ value);
}
Remarks

The viewer will raise this event whenever the user activates the context menu by pressing and releasing the right mouse button while the cursor is over any part of the viewer (except the scrollbars).

On some browsers (Internet Explorer 8), a user can also cause the viewer to raise this event by pressing the context menu button on the keyboard.

The event argument be an instance of the client Javascript "ImageGear.Web.UI.MouseEventArgs" object, containing information useful specifically for image viewing operations, as well as the original ASP.NET client framework event.

See Also

Reference

PageView Class
PageView Members