CircleHotSpot Class
Defines a circular hot spot region in an ImageMap control. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | CircleHotSpot() | Initializes a new instance of the CircleHotSpot class. |
| Name | Description | |
|---|---|---|
![]() | AccessKey | |
![]() | AlternateText | |
![]() | HotSpotMode | |
![]() | MarkupName | |
![]() | NavigateUrl | |
![]() | PostBackValue | |
![]() | Radius | Gets or sets the distance from the center to the edge of the circular region defined by this CircleHotSpot object. |
![]() | TabIndex | |
![]() | Target | |
![]() | X | Gets or sets the x-coordinate of the center of the circular region defined by this CircleHotSpot object. |
![]() | Y | Gets or sets the y-coordinate of the center of the circular region defined by this CircleHotSpot object. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetCoordinates() | Returns a string that represents the x- and y-coordinates of a CircleHotSpot object's center and the length of its radius.(Overrides HotSpot.GetCoordinates().) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() |
This class defines a circle-shaped hot spot region in an ImageMap control. To define the region of the CircleHotSpot object, set the X property to the value that represents the x-coordinate of the center of the circular region. Set the Y property to the value that represents the y-coordinate of the center of the circular region. Set the Radius property to the distance from the center of the circle to the edge.
When a CircleHotSpot control is clicked, the page either navigates to a URL, generates a post back to the server, or does nothing. The HotSpotMode property specifies this behavior. To navigate to a URL, set the HotSpotMode property to HotSpotMode.Navigate, and use the NavigateUrl property to specify the URL to navigate to. To post back to the server, set the HotSpotMode property to HotSpotMode.PostBack, and use the PostBackValue property to specify a name for the CircleHotSpot object. This name will be passed in the ImageMapEventArgs event data when the CircleHotSpot is clicked. If you want the CircleHotSpot object to have no behavior, set the HotSpotMode property to HotSpotMode.Inactive.
The following code example demonstrates how to declaratively create an ImageMap control that contains two CircleHotSpot objects. The HotSpotMode property is set to HotSpotMode.Navigate, which causes the page to navigate to the specified URL each time a user clicks one of the hot spot regions. For this example to work correctly, you must supply your own image for the ImageUrl property and update the path to the image appropriately so that the application can locate it.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.





