Path.Closed property (Visio)
Determines if an object is closed (that is, if its begin point coincides with its endpoint). Read-only.
Syntax
expression.Closed
expression A variable that represents a Path object.
Return value
Integer
Remarks
Use the Closed property of a Path or Curve object to test for equality (Microsoft Visio uses 10E-6 as its "fuzz" factor) of the object's begin and endpoints. 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 Geometry n.NoFill cell is zero (0). If you indicate to Visio to fill an open Path object, it responds as if there is a LineTo cell from the Path object's endpoint 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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.