ImageMapClickEventArgs 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: 2023.1.3.0
  EWSoftware.ImageMaps.Windows.Forms (in EWSoftware.ImageMaps.Windows.Forms.dll) Version: 2023.1.3.0
public class ImageMapClickEventArgs : EventArgs
Inheritance
Object    EventArgs    ImageMapClickEventArgs

Remarks

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

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

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also