Assembly: System.Web (in system.web.dll)
[TypeConverterAttribute(typeof(ExpandableObjectConverter))] public abstract class HotSpot : IStateManager
/** @attribute TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter) */ public abstract class HotSpot implements IStateManager
TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter) public abstract class HotSpot implements IStateManager
You cannot directly create instances of the abstract HotSpot class. Instead, this class is inherited by the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes to provide the common basic functionality for a hot spot. You must derive from the HotSpot class to create a custom hot spot class that represents a unique shape that you define. However, you can define most shapes using the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes.
When a HotSpot in an ImageMap control is clicked, the page either navigates to a URL, generates a postback to the server, or does nothing. The HotSpotMode property specifies this behavior. To navigate to a URL, set the HotSpotMode property to HotSpotMode.Navigate. Use the NavigateUrl property to specify the URL to navigate to. To post back to the server, set the HotSpotMode property to HotSpotMode.PostBack. Use the PostBackValue property to specify a name for the HotSpot object. This name will be passed in the ImageMapEventArgs event data when the HotSpot object is clicked. If you want the HotSpot object to have no behavior set the HotSpotMode property to HotSpotMode.Inactive.
Alternately, you can use the HotSpotMode property on the containing ImageMap control to specify a HotSpot object's behavior. For more information, see HotSpotMode.Notes to Inheritors: When you inherit from HotSpot, you must override the following members: GetCoordinates and MarkupName.