Implements the basic functionality common to all hot spot shapes.
Assembly: System.Web (in System.Web.dll)
Thetype exposes the following members.
|AccessKey||Gets or sets the access key that allows you to quickly navigate to the region.|
|AlternateText||Gets or sets the alternate text to display for a object in an ImageMap control when the image is unavailable or renders to a browser that does not support images.|
|HotSpotMode||Gets or sets the behavior of a object in an ImageMap control when the is clicked.|
|IsTrackingViewState||Gets a value indicating whether the object is tracking its view-state changes.|
|MarkupName||When overridden in a derived class, gets the string representation for the object's shape.|
|NavigateUrl||Gets or sets the URL to navigate to when a object is clicked.|
|PostBackValue||Gets or sets the name of the object to pass in the event data when the is clicked.|
|TabIndex||Gets or sets the tab index of the region.|
|Target||Gets or sets the target window or frame in which to display the Web page content linked to when a object that navigates to a URL is clicked.|
|ViewState||Gets a dictionary of state information that allows you to save and restore the view state of a object across multiple requests for the same page.|
|Equals(Object)||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.)|
|GetCoordinates||When overridden in a derived class, returns a string that represents the coordinates of the region.|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|LoadViewState||Restores the object's previously saved view state to the object.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|SaveViewState||Saves the changes to the object's view state since the time the page was posted back to the server.|
|ToString||Returns the String representation of this instance of a object. (Overrides Object.ToString().)|
|TrackViewState||Causes the object to track changes to its view state so they can be stored in the object's StateBag object. This object is accessible through the Control.ViewState property.|
|IStateManager.IsTrackingViewState||Infrastructure. Gets a value indicating whether the object is tracking its view-state changes.|
|IStateManager.LoadViewState||Infrastructure. Restores the object's previously saved view state to the object.|
|IStateManager.SaveViewState||Infrastructure. Saves the changes to the object's view state since the last time the page was posted back to the server.|
|IStateManager.TrackViewState||Infrastructure. Instructs the region to track changes to its view state.|
You cannot directly create instances of the abstract 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 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 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 object. This name will be passed in the ImageMapEventArgs event data when the object is clicked. If you want the object to have no behavior set the HotSpotMode property to HotSpotMode.Inactive.Notes to Inheritors
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.