This document is archived and information here might be outdated.  Recommended version.

IPolygon.Close Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPolygon Interface > IPolygon.Close Method
ArcGIS Developer Help

IPolygon.Close Method

Closes all rings in this polygon. The resulting polygon may not be simple.

[Visual Basic .NET]
Public Sub Close ( _
public void Close (

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Closes all Rings in the Polygon by adding a Segment between the To Point and From Point of each Ring if those points are not already identical.  This may result in a non-simple Polygon with Rings crossing each other.  Also, this only closes the last segment and does not fix improperly constructed Rings.

See Also

IPolygon Interface

.NET Samples

Creating a toolbar of globe tools 3D multipatch examples Triangle graphic element