HotSpotCollection::Add Method (HotSpot^)
.NET Framework (current version)
Appends a specified HotSpot object to the end of the HotSpotCollection collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- spot
-
Type:
System.Web.UI.WebControls::HotSpot^
The HotSpot object to append to the collection.
The following code example demonstrates how to programmatically create an ImageMap control and add two CircleHotSpot objects to it. The HotSpots property is used to access the HotSpotCollection collection for the ImageMap control and add the CircleHotSpot objects to it. 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: