ArcObjects Library Reference (Geometry)  

ICurve.IsClosed Property

Indicates if 'from' and 'to' points (of each part) are identical.

[Visual Basic .NET]
Public ReadOnly Property IsClosed As Boolean
[C#]
public bool IsClosed {get;}
[C++]
HRESULT get_IsClosed(
  VARIANT_BOOL* IsClosed
);
[C++]

Parameters

IsClosed [out, retval]   IsClosed is a parameter of type VARIANT_BOOL

Product Availability

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

Description

A curve is closed if the From and To points of each part of the curve are equal.

Remarks

IsClosed may still return TRUE if the curve consists of improperly constructed geometries (ex. non-continuous paths).  IsClosed only checks the location of the From and To points of each part, it does not check the internal parts for topological consistency.

ICurve IsClosed Example

See Also

ICurve Interface