ArcObjects Library Reference  (Geometry)    

IRing.Close Method

Makes sure that this ring is closed by adding a line segment between the ring's 'to' and 'from' points if necessary.

[Visual Basic 6.0]
Sub Close
[Visual Basic .NET]
Public Sub Close ( _
)
[C#]
public void Close (
);
[Java]
public void close (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Close(
void
);

Product Availability

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

Description

Checks whether or not the From and To Points of the Path occur at the same Point.  If the From and To Point have the same X and Y coordinates, the Ring is considered closed, and no action is taken.  However, if the From and To Points are not at the same X and Y coordinates, a Line segment is added at the end of the Ring between the To Point and the From Point.  This Line segment completes the Ring making it closed.

See Also

IRing Interface

 


Feedback Send feedback on this page