Suggérer une traduction
 
Suggestions d'autres utilisateurs :

progress indicator
Aucune autre suggestion.
Cliquez pour évaluer et commenter
MSDN
MSDN Library
Développement .NET
.NET Framework 4
Espaces de noms System.Web
System.Web.UI.WebControls
HotSpot, classe
Réduire tout/Développer tout Réduire tout
Affichage du contenu :  côte à côteAffichage du contenu : côte à côte
.NET Framework Class Library
HotSpot Class

Implements the basic functionality common to all hot spot shapes.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)
Visual Basic
<TypeConverterAttribute(GetType(ExpandableObjectConverter))> _
Public MustInherit Class HotSpot _
    Implements IStateManager
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class HotSpot : IStateManager
Visual C++
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public ref class HotSpot abstract : IStateManager
F#
[<AbstractClass>]
[<TypeConverterAttribute(typeof(ExpandableObjectConverter))>]
type HotSpot =  
    class
        interface IStateManager
    end

The HotSpot type exposes the following members.

  NameDescription
Protected methodHotSpotInitializes a new instance of the HotSpot class.
Top
  NameDescription
Public propertyAccessKeyGets or sets the access key that allows you to quickly navigate to the HotSpot region.
Public propertyAlternateTextGets or sets the alternate text to display for a HotSpot object in an ImageMap control when the image is unavailable or renders to a browser that does not support images.
Public propertyHotSpotModeGets or sets the behavior of a HotSpot object in an ImageMap control when the HotSpot is clicked.
Protected propertyIsTrackingViewStateGets a value indicating whether the HotSpot object is tracking its view-state changes.
Protected propertyMarkupNameWhen overridden in a derived class, gets the string representation for the HotSpot object's shape.
Public propertyNavigateUrlGets or sets the URL to navigate to when a HotSpot object is clicked.
Public propertyPostBackValueGets or sets the name of the HotSpot object to pass in the event data when the HotSpot is clicked.
Public propertyTabIndexGets or sets the tab index of the HotSpot region.
Public propertyTargetGets or sets the target window or frame in which to display the Web page content linked to when a HotSpot object that navigates to a URL is clicked.
Protected propertyViewStateGets a dictionary of state information that allows you to save and restore the view state of a HotSpot object across multiple requests for the same page.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCoordinatesWhen overridden in a derived class, returns a string that represents the coordinates of the HotSpot region.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodLoadViewStateRestores the HotSpot object's previously saved view state to the object.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSaveViewStateSaves the changes to the HotSpot object's view state since the time the page was posted back to the server.
Public methodToStringReturns the String representation of this instance of a HotSpot object. (Overrides Object..::.ToString()()().)
Protected methodTrackViewStateCauses the HotSpot object to track changes to its view state so they can be stored in the object's StateBag object. This object is accessible through the Control..::.ViewState property.
Top
  NameDescription
Explicit interface implemetationPrivate propertyIStateManager..::.IsTrackingViewStateInfrastructure. Gets a value indicating whether the HotSpot object is tracking its view-state changes.
Explicit interface implemetationPrivate methodIStateManager..::.LoadViewStateInfrastructure. Restores the HotSpot object's previously saved view state to the object.
Explicit interface implemetationPrivate methodIStateManager..::.SaveViewStateInfrastructure. Saves the changes to the HotSpot object's view state since the last time the page was posted back to the server.
Explicit interface implemetationPrivate methodIStateManager..::.TrackViewStateInfrastructure. Instructs the HotSpot region to track changes to its view state.
Top

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 Inheritors

When you inherit from HotSpot, you must override the following members: GetCoordinates and MarkupName.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Bibliothèque de classes .NET Framework
HotSpot, classe

Implémente les fonctionnalités de base communes à toutes les formes de zone réactive.

Espace de noms :  System.Web.UI.WebControls
Assembly :  System.Web (dans System.Web.dll)
Visual Basic
<TypeConverterAttribute(GetType(ExpandableObjectConverter))> _
Public MustInherit Class HotSpot _
    Implements IStateManager
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class HotSpot : IStateManager
VisualC++
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public ref class HotSpot abstract : IStateManager
F#
[<AbstractClass>]
[<TypeConverterAttribute(typeof(ExpandableObjectConverter))>]
type HotSpot =  
    class
        interface IStateManager
    end

Le type HotSpot expose les membres suivants.

  NomDescription
Méthode protégéeHotSpotInitialise une nouvelle instance de la classe HotSpot.
Début
  NomDescription
Propriété publiqueAccessKeyObtient ou définit la touche d'accès rapide qui vous permet de naviguer rapidement vers la région HotSpot.
Propriété publiqueAlternateTextObtient ou définit le texte de remplacement à afficher pour un objet HotSpot d'un contrôle ImageMap lorsque l'image n'est pas disponible ou s'affiche sur un navigateur qui ne prend pas en charge les images.
Propriété publiqueHotSpotModeObtient ou définit le comportement d'un objet HotSpot d'un contrôle ImageMap suite à un clic sur HotSpot.
Propriété protégéeIsTrackingViewStateObtient une valeur indiquant si l'objet HotSpot effectue le suivi des modifications de son état d'affichage.
Propriété protégéeMarkupNameEn cas de substitution dans une classe dérivée, obtient la représentation sous forme de chaîne de la forme de l'objet HotSpot.
Propriété publiqueNavigateUrlObtient ou définit l'URL à laquelle accéder lors d'un clic sur un objet HotSpot.
Propriété publiquePostBackValueObtient ou définit le nom de l'objet HotSpot à passer dans les données d'événement lors d'un clic sur HotSpot.
Propriété publiqueTabIndexObtient ou définit l'index de tabulation de la région HotSpot.
Propriété publiqueTargetObtient ou définit la fenêtre ou le frame cible sur lequel afficher le contenu de la page Web vers laquelle un lien est établi lorsqu'un clic est effectué sur un objet HotSpot qui navigue vers une URL.
Propriété protégéeViewStateObtient un dictionnaire d'informations d'état qui vous permet d'enregistrer et de restaurer l'état d'affichage d'un objet HotSpot entre plusieurs demandes de la même page.
Début
  NomDescription
Méthode publiqueEquals(Object)Détermine si l'Object spécifié est égal à l'Object en cours. (Hérité de Object.)
Méthode protégéeFinalizeAutorise un objet à tenter de libérer des ressources et d'exécuter d'autres opérations de netto***ge avant qu'il ne soit récupéré par l'opération garbage collection. (Hérité de Object.)
Méthode publiqueGetCoordinatesEn cas de substitution dans une classe dérivée, retourne une chaîne qui représente les coordonnées de la région HotSpot.
Méthode publiqueGetHashCodeSert de fonction de hachage pour un type particulier. (Hérité de Object.)
Méthode publiqueGetTypeObtient le Type de l'instance actuelle. (Hérité de Object.)
Méthode protégéeLoadViewStateRestaure sur l'objet l'état d'affichage précédemment enregistré de l'objet HotSpot.
Méthode protégéeMemberwiseCloneCrée une copie superficielle de l'objet Object actif. (Hérité de Object.)
Méthode protégéeSaveViewStateEnregistre les modifications apportées à l'état d'affichage de l'objet HotSpot depuis la publication de la page sur le serveur.
Méthode publiqueToStringRetourne la représentation String de cette instance d'un objet HotSpot. (Substitue Object..::.ToString()()().)
Méthode protégéeTrackViewStateAmène l'objet HotSpot à suivre les modifications de son état d'affichage afin qu'elles puissent être stockées dans l'objet StateBag de l'objet. Cet objet est accessible via la propriété Control..::.ViewState.
Début
  NomDescription
Implémentation d'interface explicitePropriété privéeIStateManager..::.IsTrackingViewStateInfrastructure. Obtient une valeur indiquant si l'objet HotSpot effectue le suivi des modifications de son état d'affichage.
Implémentation d'interface expliciteMéthode privéeIStateManager..::.LoadViewStateInfrastructure. Restaure sur l'objet l'état d'affichage précédemment enregistré de l'objet HotSpot.
Implémentation d'interface expliciteMéthode privéeIStateManager..::.SaveViewStateInfrastructure. Enregistre les modifications apportées à l'état d'affichage de l'objet HotSpot depuis la dernière publication de la page sur le serveur.
Implémentation d'interface expliciteMéthode privéeIStateManager..::.TrackViewStateInfrastructure. Indique à la région HotSpot de suivre les modifications apportées à son état d'affichage.
Début

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éritiers

Lorsque vous héritez de HotSpot, vous devez substituer les membres suivants : GetCoordinates et MarkupName.

.NET Framework

Pris en charge dans : 4, 3.5, 3.0, 2.0

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.
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.
Contenu de la communauté   Qu'est-ce que le Contenu de la communauté ?
Ajouter du contenu RSS  Annotations
Processing
© 2012 Microsoft. Tous droits réservés. Conditions d'utilisation | Marques | Confidentialité
Page view tracker