HotSpotCollection.RemoveAt Method

Note: This method is new in the .NET Framework version 2.0.

Removes the HotSpot object at the specified index location from the collection.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
void RemoveAt (
	int index
)
public void RemoveAt (
	int index
)
public function RemoveAt (
	index : int
)

Parameters

index

The array index from which to remove the HotSpot object.

The RemoveAt method removes the HotSpot object at the specified index location from the collection. To remove a specific HotSpot object from the collection by name, use the Remove method.

To add new HotSpot objects to the collection, use the Add or the Insert method.

The following code example demonstrates how to programmatically add two CircleHotSpot objects to an ImageMap control. After the two CircleHotSpot objects are added to the HotSpotCollection collection, the RemoveAt method is used to delete the object located at the first index in the collection. 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.

No code example is currently available or this language may not be supported.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: