DekGenius.com
[ Team LiB ] Previous Section Next Section

ImageClickEventArgs

System.Web.UI (system.web.dll)sealed class

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 sealed class ImageClickEventArgs : EventArgs {
// Public Constructors
   public ImageClickEventArgs(int x, int y);
// Public Instance Fields
   public int X;
   public int Y;
}

Hierarchy

System.Object System.EventArgs ImageClickEventArgs

Passed To

System.Web.UI.HtmlControls.HtmlInputImage.OnServerClick( ), ImageClickEventHandler.{BeginInvoke( ), Invoke( )}, System.Web.UI.WebControls.ImageButton.OnClick( )

    [ Team LiB ] Previous Section Next Section