PolygonHotSpot.GetCoordinates Method

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

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
virtual String^ GetCoordinates () override
public String GetCoordinates ()
public override function GetCoordinates () : String
Not applicable.

Return Value

A 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.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: