Name

ImageClickEventArgs

Synopsis

This custom System.EventArgs object provides extra information for some image-click events. These include the System.Web.UI.WebControls.ImageButton.Click and System.Web.UI.HtmlControls.HtmlInputImage.ServerClick events. Note that the System.Web.UI.WebControls.Image and System.Web.UI.HtmlControls.HtmlImage controls do not use this class.

The extra information consists of two coordinates indicating the exact position where the image was clicked: X and Y. These coordinates are measured from the top-left corner, which has the coordinates (0, 0) by convention.

Public NotInheritable Class ImageClickEventArgs : Inherits EventArgs
' Public Constructors
   Public Sub New(ByVal x As Integer, ByVal y As Integer) 
' Public Instance Fields
   public X As Integer  
   public Y As Integer  
End Class

Hierarchy

System.ObjectSystem.EventArgs ImageClickEventArgs

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.