System.Web.UI.WebControls.CircleHotSpot Class

Defines a circular hot spot region in an System.Web.UI.WebControls.ImageMap control. This class cannot be inherited.

See Also: CircleHotSpot Members

Syntax

public sealed class CircleHotSpot : HotSpot

Remarks

This class defines a circle-shaped hot spot region in an System.Web.UI.WebControls.ImageMap control. To define the region of the System.Web.UI.WebControls.CircleHotSpot object, set the CircleHotSpot.X property to the value that represents the x-coordinate of the center of the circular region. Set the CircleHotSpot.Y property to the value that represents the y-coordinate of the center of the circular region. Set the CircleHotSpot.Radius property to the distance from the center of the circle to the edge.

When a System.Web.UI.WebControls.CircleHotSpot control is clicked, the page either navigates to a URL, generates a post back to the server, or does nothing. The HotSpot.HotSpotMode property specifies this behavior. To navigate to a URL, set the HotSpot.HotSpotMode property to HotSpotMode.Navigate, and use the HotSpot.NavigateUrl property to specify the URL to navigate to. To post back to the server, set the HotSpot.HotSpotMode property to HotSpotMode.PostBack, and use the HotSpot.PostBackValue property to specify a name for the System.Web.UI.WebControls.CircleHotSpot object. This name will be passed in the System.Web.UI.WebControls.ImageMapEventArgs event data when the System.Web.UI.WebControls.CircleHotSpot is clicked. If you want the System.Web.UI.WebControls.CircleHotSpot object to have no behavior, set the HotSpot.HotSpotMode property to HotSpotMode.Inactive.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0