Image Map Click Event Args Class
This is a custom event arguments class for the Click event
Definition
Namespace: EWSoftware.ImageMaps
Assemblies: EWSoftware.ImageMaps.Web.Controls (in EWSoftware.ImageMaps.Web.Controls.dll) Version: 2024.12.31.0
EWSoftware.ImageMaps.Windows.Forms (in EWSoftware.ImageMaps.Windows.Forms.dll) Version: 2024.12.31.0
Assemblies: EWSoftware.ImageMaps.Web.Controls (in EWSoftware.ImageMaps.Web.Controls.dll) Version: 2024.12.31.0
EWSoftware.ImageMaps.Windows.Forms (in EWSoftware.ImageMaps.Windows.Forms.dll) Version: 2024.12.31.0
C#
public class ImageMapClickEventArgs : EventArgsVB
Public Class ImageMapClickEventArgs
Inherits EventArgsC++
public ref class ImageMapClickEventArgs : public EventArgsF#
type ImageMapClickEventArgs =
class
inherit EventArgs
endRemarks
The event contains the index of the area that was clicked along with the X and Y coordinates of
the click. The coordinates are only valid in Windows Forms image maps when they are clicked on with the
mouse and for web server control image maps when clicked on with the mouse and rendered in browsers that
support the event.offsetX and event.offsetY properties such as Internet Explorer. For
browsers that do not support those properties, the coordinates will always be negative one (-1). If an
area's click event is fired by selecting it with the Enter key, the coordinates may not be within the
bounds of the area in the web server control. For image areas selected via the keyboard in the Windows
Forms control, the coordinates will always be negative one (-1).
Constructors
| ImageMapClickEventArgs | Constructor |
Properties
| AreaIndex | This read-only property is used to get the zero-based index of the area that was clicked |
| XCoordinate | This read-only property is used to get the X coordinate of the click |
| YCoordinate | This read-only property is used to get the Y coordinate of the click |
Methods
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |