.NET Framework Class Library HotSpot Class Implements the basic functionality common to all hot spot shapes.

Inheritance Hierarchy
Namespace:
System.Web.UI.WebControls
Assembly:
System.Web (in System.Web.dll)

Syntax
<TypeConverterAttribute(GetType(ExpandableObjectConverter))> _
Public MustInherit Class HotSpot _
Implements IStateManager
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class HotSpot : IStateManager
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public ref class HotSpot abstract : IStateManager
[<AbstractClass>]
[<TypeConverterAttribute(typeof(ExpandableObjectConverter))>]
type HotSpot =
class
interface IStateManager
end
The HotSpot type exposes the following members.

Constructors
|
| Name | Description |
|---|
.gif) | HotSpot | Initializes a new instance of the HotSpot class. | Top

Explicit Interface Implementations

Remarks
You cannot directly create instances of the abstract HotSpot class. Instead, this class is inherited by the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes to provide the common basic functionality for a hot spot. You must derive from the HotSpot class to create a custom hot spot class that represents a unique shape that you define. However, you can define most shapes using the CircleHotSpot, RectangleHotSpot, and PolygonHotSpot classes. When a HotSpot in an ImageMap control is clicked, the page either navigates to a URL, generates a postback to the server, or does nothing. The HotSpotMode property specifies this behavior. To navigate to a URL, set the HotSpotMode property to HotSpotMode.Navigate. Use the NavigateUrl property to specify the URL to navigate to. To post back to the server, set the HotSpotMode property to HotSpotMode.PostBack. Use the PostBackValue property to specify a name for the HotSpot object. This name will be passed in the ImageMapEventArgs event data when the HotSpot object is clicked. If you want the HotSpot object to have no behavior set the HotSpotMode property to HotSpotMode.Inactive. Alternately, you can use the HotSpotMode property on the containing ImageMap control to specify a HotSpot object's behavior. For more information, see HotSpotMode. Notes to InheritorsWhen you inherit from HotSpot, you must override the following members: GetCoordinates and MarkupName.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also
|
Bibliothèque de classes .NET Framework HotSpot, classe Implémente les fonctionnalités de base communes à toutes les formes de zone réactive.

Hiérarchie d'héritage
Espace de noms :
System.Web.UI.WebControls
Assembly :
System.Web (dans System.Web.dll)

Syntaxe
<TypeConverterAttribute(GetType(ExpandableObjectConverter))> _
Public MustInherit Class HotSpot _
Implements IStateManager
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class HotSpot : IStateManager
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public ref class HotSpot abstract : IStateManager
[<AbstractClass>]
[<TypeConverterAttribute(typeof(ExpandableObjectConverter))>]
type HotSpot =
class
interface IStateManager
end
Le type HotSpot expose les membres suivants.

Constructeurs
|
| Nom | Description |
|---|
.gif) | HotSpot | Initialise une nouvelle instance de la classe HotSpot. | Début

Implémentations d'interface explicite

Notes
Vous ne pouvez pas créer directement des instances de la classe HotSpot abstraite. Cette classe est plutôt héritée par les classes CircleHotSpot, RectangleHotSpot et PolygonHotSpot pour fournir les fonctionnalités de base courantes pour une zone réactive. Vous devez dériver de la classe HotSpot pour créer une classe de zone réactive personnalisée qui représente une forme unique que vous définissez. Toutefois, vous pouvez définir la plupart des formes à l'aide des classes CircleHotSpot, RectangleHotSpot et PolygonHotSpot. Lorsqu'un clic est effectué sur un HotSpot du contrôle ImageMap, la page navigue vers une URL, génère une publication sur le serveur ou ne fait rien. La propriété HotSpotMode spécifie ce comportement. Pour naviguer vers une URL, affectez la valeur HotSpotMode.Navigate à la propriété HotSpotMode. Utilisez la propriété NavigateUrl pour spécifier l'URL à atteindre. Pour effectuer une publication sur le serveur, affectez la valeur HotSpotMode.PostBack à la propriété HotSpotMode. Utilisez la propriété PostBackValue pour spécifier un nom pour l'objet HotSpot. Ce nom est passé dans les données d'événement ImageMapEventArgs en cas de clic sur l'objet HotSpot. Si vous souhaitez que l'objet HotSpot n'ait aucun comportement, affectez la valeur HotSpotMode.Inactive à la propriété HotSpotMode. Vous pouvez également utiliser la propriété HotSpotMode du contrôle ImageMap conteneur pour spécifier un comportement d'objet HotSpot. Pour plus d'informations, consultez HotSpotMode. Remarques à l'attention des héritiersLorsque vous héritez de HotSpot, vous devez substituer les membres suivants : GetCoordinates et MarkupName.

Informations de version
.NET FrameworkPris en charge dans : 4, 3.5, 3.0, 2.0

Plateformes
Windows 7, Windows Vista SP1 ou ultérieur, Windows XP SP3, Windows XP SP2 Édition x64, Windows Server 2008 (installation minimale non prise en charge), Windows Server 2008 R2 (installation minimale prise en charge avec SP1 ou version ultérieure), Windows Server 2003 SP2
Le .NET Framework ne prend pas en charge toutes les versions de chaque plateforme. Pour obtenir la liste des versions prises en charge, consultez Configuration requise du .NET Framework.

Sécurité des threads
Tous les membres static ( Shared en Visual Basic) publics de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Voir aussi
RéférenceAutres ressources
|