API Documentation
>
CorelDRAW
>
2025-v26
>
SubPath
>
IVGSubPath
SubPath.LastSegment property
Gets the last segment of the subpath
Syntax:
Property
Get
LastSegment
(
)
As
Segment
Remarks:
The
LastSegment
property returns the last
segment
of a subpath.
Examples:
The following VBA example converts, to a line, the last segment of the first subpath of the selected curve.
Sub Test() ActiveShape.Curve.Subpaths(1).LastSegment.Type = cdrLineSegment End Sub