The Shape class represents a map feature.


The following tables list the members exposed by Shape.

Public Constructors

  Name Description
Static Public method Shape Overloaded.  
Top

Public Properties

  Name Description
Public property Area Returns the area of the Shape in map square units.
Public property Centroid Returns the centroid of the Shape as a Point object.
Public property Count Returns the number of parts in the Shape.
Public property Extent Returns a Rectangle representing the spatial extent of the Points collection.
Public property Item Gets or sets a part of the Shape.
Public property LabelPoint Returns a hint for the placement of a label for this shape.
Public property Length Returns the length of the Shape in map units.
Public property PointCount Returns the total number of points (including all parts) in the Shape.
Public property ShapeData Returns or sets the contents of the Shape as binary data (ESRI Shapefile specification).
Public property ShapeType Gets or sets the type of the Shape.
Public property WkbData Obsolete. Returns or sets the contents of the Shape as Well-Known Binary data (OpenGIS Simple Features Specification 1.1).
Top

Public Methods

  Name Description
Public method Add Adds a new part to the Shape.
Public method Buffer Returns a polygon that represents the perimeter of another shape object that has been increased or decreased by a specific distance in all directions.
Public method Clear Removes all parts of the Shape.
Public method Clone Returns a copy of the Shape.
Public method Contains Returns a value that indicates whether a shape wholly contains another shape.
Public method ConvexHull Constructs the convex hull of this Shape.
Public method Difference Returns a shape that represents the geometric difference of two shape objects.
Public method FindNearestPoint Returns the most closest point to the given point.
Public method Static FromWkb Creates a Shape from Well-Known Binary(WKB) data.
Public method Static FromWkt Creates a Shape from Well-Known Text(WKT) data.
Public method GetCrossings Returns a Points collection whose members represent the points at which two spatial objects cross.
Public method GetPoint Gets a point within the Shape.
Public method Intersect Returns a shape that represents the geometric intersection of one shape object with another shape object.
Public method Intersects Returns a value that indicates whether a shape intersects another shape.
Public method MakeCircle Makes a circle Shape object.
Public method MakeRectangle Makes a rectangle Shape object.
Public method Remove Removes a part from a Shape object.
Public method Static ToWkb Returns the contents of the Shape as Well-Known Binary(WKB) data (array of bytes).
Public method Static ToWkt Returns the contents of the Shape as Well-Known Text(WKT) data.
Public method Union Returns a shape that represents the geometric union of two shape objects.
Top

Explicit Interface Implementations

  Name Description
Static Private method Shape Overloaded.  
Top

See Also