The Shape class represents a map feature.

The following tables list the members exposed by Shape.

# Public Constructors

# Public Properties

Name | Description | |
---|---|---|

Area | Returns the area of the Shape in map square units. | |

Centroid | Returns the centroid of the Shape as a Point object. | |

Count | Returns the number of parts in the Shape. | |

Extent | Returns a Rectangle representing the spatial extent of the Points collection. | |

Item | Gets or sets a part of the Shape. | |

LabelPoint | Returns a hint for the placement of a label for this shape. | |

Length | Returns the length of the Shape in map units. | |

PointCount | Returns the total number of points (including all parts) in the Shape. | |

ShapeData | Returns or sets the contents of the Shape as binary data (ESRI Shapefile specification). | |

ShapeType | Gets or sets the type of the Shape. | |

WkbData |
Obsolete.
Returns or sets the contents of the Shape as Well-Known Binary data (OpenGIS Simple Features Specification 1.1). |

# Public Methods

Name | Description | |
---|---|---|

Add | Adds a new part to the Shape. | |

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

Clear | Removes all parts of the Shape. | |

Clone | Returns a copy of the Shape. | |

Contains | Returns a value that indicates whether a shape wholly contains another shape. | |

ConvexHull | Constructs the convex hull of this Shape. | |

Difference | Returns a shape that represents the geometric difference of two shape objects. | |

FindNearestPoint | Returns the most closest point to the given point. | |

FromWkb | Creates a Shape from Well-Known Binary(WKB) data. | |

FromWkt | Creates a Shape from Well-Known Text(WKT) data. | |

GetCrossings | Returns a Points collection whose members represent the points at which two spatial objects cross. | |

GetPoint | Gets a point within the Shape. | |

Intersect | Returns a shape that represents the geometric intersection of one shape object with another shape object. | |

Intersects | Returns a value that indicates whether a shape intersects another shape. | |

MakeCircle | Makes a circle Shape object. | |

MakeRectangle | Makes a rectangle Shape object. | |

Remove | Removes a part from a Shape object. | |

ToWkb | Returns the contents of the Shape as Well-Known Binary(WKB) data (array of bytes). | |

ToWkt | Returns the contents of the Shape as Well-Known Text(WKT) data. | |

Union | Returns a shape that represents the geometric union of two shape objects. |

# Explicit Interface Implementations

# See Also