Defines a rectangular hot spot region in an System.Web.UI.WebControls.ImageMap control. This class cannot be inherited.
See Also: RectangleHotSpot Members
This class defines a rectangular hot spot region in an System.Web.UI.WebControls.ImageMap control. To define the region of the System.Web.UI.WebControls.RectangleHotSpot object, set the RectangleHotSpot.Left property to the value that represents the x-coordinate of the rectangular region's top left corner. Set the RectangleHotSpot.Top property to the value that represents the y-coordinate of the rectangular region's top left corner. Set the RectangleHotSpot.Right property to the value that represents the x-coordinate of the rectangular region's bottom right corner. Set of the RectangleHotSpot.Bottom property to the value that represents the y-coordinate of the rectangular region's bottom right corner.
When a System.Web.UI.WebControls.RectangleHotSpot control is clicked, the page 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.RectangleHotSpot object. This name will be passed in the System.Web.UI.WebControls.ImageMapEventArgs event data when the System.Web.UI.WebControls.RectangleHotSpot is clicked. . If you want the System.Web.UI.WebControls.HotSpot object to have no behavior, set the HotSpot.HotSpotMode property to HotSpotMode.Inactive.