ImageClickEventArgs

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( )



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net