Closed property
Determines if the object is closed (its begin point coincides with its end point).
Version added
5.0
Syntax
| |
intRet |
Integer. True (-1) if the Path or Curve object is closed; otherwise, False (0). |
object |
Required. An expression that returns a Path or Curve object to examine. |
Remarks
Use the Closed property of a Path or Curve object to test for equality (Visio uses 10E-6 as its "fuzz" factor) of the object's begin and end points. A closed Curve object can be in a Path object that is open, and a Curve object that is open can be in a closed Path object.
The Closed property of a Path object is unrelated to a Path object's fill. A Path object is filled if its Geometryn.NoFill cell is zero (0). If Visio is told to fill an open Path object, it pretends there is a LineTo cell from the Path object's end point to its begin point. When filling a Path object, Visio considers a point to be inside the Path object if a ray drawn from the point in any direction crosses the Path object or any of the shape's other Path objects cross an odd number of times.