PolygonHotSpot.GetCoordinates Method
Assembly: System.Web (in system.web.dll)
The GetCoordinates method returns a string that represents the coordinates of the vertexes of a PolygonHotSpot object. The string this method returns is the current value of the Coordinates property.
The GetCoordinates method is used internally by ASP.NET to get the text to use for the coordinates of a PolygonHotSpot when it is rendered. The string that is returned is specific to the browser and markup language.
The following code example demonstrates how to create an ImageMap control that contains three PolygonHotSpot objects. Each PolygonHotSpot object represents a geographical region on the map. When the user clicks a PolygonHotSpot object, it posts back to the server. The GetCoordinates method retrieves the coordinates of the polygon's vertexes so that they can be displayed in a label.