ArcObjects Library Reference (Geometry)  

IPolygon.Close Method

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

[Visual Basic .NET]
Public Sub Close ( _
)
[C#]
public void Close (
);
[C++]
HRESULT Close(
void
);

Product Availability

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

Description

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