System.Web 2.0.0.0 System.Web.UI.WebControls.HotSpot

This class defines a polygon-shaped hot spot region in an control. The is useful for defining irregularly shaped hot spot regions in an control. For example, you can use it to define individual regions within a geographical map.

To define the region of a , set the property to a string that specifies the coordinates of each vertex of the object. A polygon vertex is a point at which two polygon edges meet.

When a object is clicked, the page navigates to a URL, generates a post back to the server, or does nothing. The property specifies this behavior. To navigate to a URL, set the property to HotSpotMode.Navigate, and use the property to specify the URL to navigate to. To post back to the server, set the property to HotSpotMode.PostBack, and use the property to specify a name for the object. This name will be passed in the event data when the is clicked. If you want the object to have no behavior, set the property to HotSpotMode.Inactive.

Defines a polygon-shaped hot spot region in an control. This class cannot be inherited.

- Constructor

  Use this constructor to initialize a new instance of the class.

  Initializes a new instance of the class.

  2.0.0.0
- Property
  System.ComponentModel.DefaultValue("")
  System.String To be added.

  Use the property to specify the coordinates of the vertexes of a object. A polygon vertex is a point at which two polygon edges meet. The string that you specify must be formatted with each coordinate separated by a comma. Each vertex that you specify must have both an x- coordinate and a y-coordinate. For example, the string "128,185,335,157,510,224,510,383,228,383" defines a polygon hot spot with five vertexes. The x-coordinate of the first vertex is 128. The y-coordinate of the first vertex is 185.

  A string of coordinates that represents the vertexes of a object.

  2.0.0.0
- Method
  System.String

  The method returns a string that represents the coordinates of the vertexes of a object. The string this method returns is the current value of the property.

  The method is used internally by ASP.NET to get the text to use for the coordinates of a when it is rendered. The string that is returned is specific to the browser and markup language.

  Returns a string that represents the coordinates of the vertexes of a object.

  A string that represents the coordinates of the vertexes of a object. The default value is an empty string ("").

  2.0.0.0
- Property
  2.0.0.0
  System.String To be added.

  The property is used internally by ASP.NET to get the markup-language string representation for the shape of the object. This property always returns the string "poly". You cannot access this property directly from your application's code.

  Gets the string representation for the object's shape.