Share via


Shape object

Gg662952.BIZOMShape(en-us,MSDN.10).gif

The Shape object represents a single drawing object on the map: line, freeform, text box, radius, oval, or rectangle. You can use the QueryCircle, QueryPolygon, and QueryShape methods on a DataSet object to return a set of records within the area of a shape. This object is invalidated after the map is closed.

The name of this object, "Shape," conflicts with the Visual Basic Shape object. It is good practice to always declare a variable with a full type, such as "MapPoint.Shape" instead of just "Shape" to avoid ambiguity, but in this case it is necessary.

Methods

Properties