API Documentation > CorelDRAW > 2025-v26
Segments class
Represents a collection of segments (or Segment objects) in a curve or subpath
Syntax:
Class Segments
Remarks:
The Segments class represents a collection of segments (or Segment objects) in a curve or subpath.
Properties:
Name Description
_NewEnum Returns an enumerator that iterates through a collection
Application Gets the application to which the segment collection belongs
Count Gets the number of segments in the segment collection
First Returns the first segment in the collection
Item Gets a reference to the specified segment, in base 1
Last Returns the last segment in the collection
Parent Gets the parent subpath
Methods:
Name Description
All Creates a range containing all the segments of the collection
AllExcluding Creates a range containing all the segments except the ones specified
Range Creates a range containing the specified segments