The Polygon type exposes the following members.

Constructors

  NameDescription
PolygonOverloaded.
Initializes a new instance of the Polygon class with the specified initial properties.

Methods

  NameDescription
AddPointOverloaded.
Adds a Point to the Polygon by copying the specified Point after any existing points.
AddPointsOverloaded.
Adds an enumerable set of points to the Polygon by copying the specified points after any existing points.
AddRingOverloaded.
Adds a new ring to the Polygon.
Clone
Returns a new Polygon with properties equal to the current Polygon.
Close
Closes the Polygon, ensuring that the last Point in the Polygon is at the same location as the first Point, by adding points if necessary.
CreateFromXmlString
Helper method to generate an object from its XML representation, used to deserialize an object passed to a worker thread.
Equals
Tests whether the specified object and the current object refer to the same underlying object.
(Inherited from Geometry.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetCenter
Gets a new Point object located at the center of this Geometry.
(Inherited from Geometry.)
GetEnvelope
Returns a new Envelope indicating the geographical extent of the Geometry.
(Inherited from Geometry.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetLabelPoint
Returns a Point suitable for labeling the Polygon.
(Overrides Geometry..::.GetLabelPoint()()().)
GetPerimeter
Returns a Polyline representing the perimeter of the Polygon.
GetPointOverloaded.
Gets a copy of the specified Point.
GetRing
Gets the a copy of the points in the requested ring of the Polygon.
GetRings
Gets the a copy of the points in all of the rings of the Polygon.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
GetXmlSchema
Creates a schema for this class (required by the serialization implementation for this class).
InsertPointOverloaded.
Inserts a copy of the specified Point into the Polygon.
InsertPointsOverloaded.
Inserts a copy of the specified set of points into the Polygon.
InsertRing
Inserts a new ring at the specified index containing the specified points.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
PointCountOverloaded.
Gets the number of points. See overloads for details.
PointCountAllRings
Gets the total number of points in all of the rings in a single part or multipart Polygon.
RemoveAllPoints
Removes all points from the Polygon.
RemovePointAtOverloaded.
Removes the specified Point from the Polygon.
RemovePointsAtOverloaded.
Removes the specified points from the Polygon.
RemoveRing
Removes the specified ring, and all of the points that compose that ring, from the Polygon.
SetPointOverloaded.
Replaces an existing Point in the Polygon with a copy of the specified Point.
SetPointsOverloaded.
Replaces an existing Point in the Polygon with a copy of the specified Point.
SetRing
Replaces any existing points in the specified ring with the specified points.
ToString
Returns a string containing basic information about the Polygon.
(Overrides Object..::.ToString()()().)
ToXmlString
Helper method to serialize an object to its XML representation, used to serialize an object to pass to a worker thread.
(Inherited from Geometry.)

Properties

  NameDescription
Area
Returns the area of the Polygon, in square units of the CoordinateSystem.
CoordinateSystem
Gets or sets the coordinate system used by this Geometry.
(Inherited from Geometry.)
GeometryType
Gets the type of the geometry, indicating the underlying class.
(Inherited from Geometry.)
HasCurves
Gets a boolean indicating whether the Polygon contains any curves.
IsClosed
Indicates whether the Polygon is closed, that is its last Point is at the same location as the first Point.
IsEmpty
Indicates whether the Geometry contains any geometric information.
(Inherited from Geometry.)
RingCount
Gets the number of rings in this Polygon. Polygons may have one or more rings.
ZSpecified
Gets a value indicating whether the geometry has Z values specified.
(Inherited from Geometry.)

See Also