Starts editing of a shape. The coordinate system of the shape must be the same as the coordinate system of the Map.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Sub EditShape( _ 
   ByVal shape As Object _ 
)
C#
public void EditShape(
   object shape
)
C++
public:
 void EditShape(
   Object shape
) sealed 
J#
public void EditShape(
   object shape
)
JScript
public  function EditShape(
   shape : Object
)

Parameters

shape
An object expression that can be one of Point, Rectangle, Points, Polyline, Polygon or Shape object. Null shapes are not supported.

Remarks

This method sends the shape to the client-side user interface for editing. The MapTool property will be automatically set to MapTool.EditShape.

The edited shape can be received in a EndEdit event handler. To submit the shape to the server, call the client-side Map.EndEdit method.

The ZoomIn, ZoomOut, Pan, Info, InfoWindow, Center, DrawShape, and EditShape tools can be used when a shape is selected for editing by the EditShape method.

To cancel editing, call the CancelEdit method or its client-side equivalent.

See Also