API Documentation > CorelDRAW > 2025-v26
SegmentRange class
Represents an array (or range) of curve segments (or Segment objects)
Syntax:
Class SegmentRange
Remarks:
The SegmentRange class represents an array (or range) of curve segments (or Segment objects). You can create a SegmentRange object by using the New keyword in Visual Basic.
Properties:
Name Description
_NewEnum Returns an enumerator that iterates through a collection
Application Gets the application to which the range belongs
Count Gets the number of segments in the range
FirstSegment Returns the first segment in the range
Item Gets a reference to the specified segment, in base 1
LastSegment Returns the last segment in the range
Length Gets the total length of the segments within the range
NodeRange Returns a range of nodes corresponding to the given segments
Parent Gets the parent shape
Type Gets the segment type, if common within the range
Methods:
Name Description
Add Adds a segment to the range
AddNode Adds a node at the middle of each segment within the range
AddRange Adds all segments from the given range to the current range
AddToSelection Adds the nodes which control the properties of the segments in the range to the selection
CreateSelection Selects all the curve nodes which control the properties of the segments in the range
Remove Removes a segment from the range
RemoveAll Removes all segments from the range
RemoveFromSelection Removes the nodes which control the properties of the segments in the range to the selection
RemoveRange Removes the segments in the given range from the current range
SetType Sets the type of all segments