PolygonHotSpot::GetCoordinates Method
Returns a string that represents the coordinates of the vertexes of a PolygonHotSpot object.
Assembly: System.Web (in System.Web.dll)
Return Value
Type: System::StringA string that represents the coordinates of the vertexes of a PolygonHotSpot object. The default value is an empty string ("").
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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.