API Documentation > CorelDRAW > 2025-v26
IVGSubPath interface
The main interface for SubPath class
Syntax:
Interface IVGSubPath
Properties:
Name Description
Application Gets the application to which the segment collection belongs
Area Returns the area of a closed path
BoundingBox Returns the bounding rectangle around the subpath
Closed Gets or sets whether the subpath is open or closed
EndNode Gets the end node
FirstSegment Gets the first segment of the subpath
Index Gets the index of the subpath within its curve
IsClockwise Returns True if the path direction is predominantly clockwise
LastSegment Gets the last segment of the subpath
Length Gets the length of the subpath (in document's units)
Nodes Gets the collection of nodes within the subpath
Parent Gets the subpath collection parent
PositionX Gets or sets the X position of the subpath's head
PositionY Gets or sets the Y position of the subpath's head
Segments Gets the collection of segments within the subpath
SizeHeight Gets the height of the whole subpath (in document's units)
SizeWidth Gets the width of the whole subpath (in document's units)
StartNode Gets the start node
Methods:
Name Description
AddNodeAt Inserts a node on the segment
AppendCurveSegment Appends a new curve segment to this subpath
AppendCurveSegment2 Appends a new curve segment to this subpath
AppendLineSegment Appends a new line segment to this subpath
BreakApartAt Breaks this segment into two unconnected segments
Delete Erases the whole subpath
EqualDivide Divides a subpath equally
Extract Extracts the subpath into a new separate curve
FindClosestSegment Finds a segment closest to the specified point
FindNodeAtPoint Finds a node along the path at the specified point
FindSegmentAtPoint Finds a segment along the path at the specified point
FindSegmentOffset Finds Segment Offset
GetBoundingBox Gets the bounding rectangle around the subpath
GetCopy Returns a copy of the current subpath as a separate curve
GetCurvatureAt Gets the Curve's Curvature at the current subpath
GetCurveInfo Retrieves low-level curve information
GetCurveSpeedAt Gets the Curve's Speed at the current subpath
GetEvenlySpacedPoints Returns an array of points that approximately follow this array and are evenly spaced along the curve
GetIntersections Finds the intersection point(s) with another subpath
GetPerpendicularAt Finds the perpendicular line to a point on the segment
GetPerpendicularVectorAt Finds the perpendicular vector to a point on the subpath
GetPointAt Gets the point located on the subpath
GetPointPositionAt Gets the coordinates of a point located on the subpath
GetPolyline Returns curve consisting of line segments approximating the current subpath
GetPosition Gets the horizontal and vertical position of the subpath's head on the page
GetSegmentAt Gets the segment at a given position
GetTangentAt Finds the tangent line to a point on the segment
GetTangentVectorAt Finds the tangent vector to a point on the subpath
IsOnSubPath Finds if the given coordinates are 'inside', 'outside' or on the margins of the subpath
IsPointInside Determines if the specified point lies inside a closed path
IsRectOnEdge Determines if the specified rectangle intersects the path
Move Moves the whole subpath by a given delta
Next Gets the subpath following this one
Previous Gets the subpath preceding this one
PutCurveInfo Replaces the current subpath with node information provided
ReverseDirection Reverses the node order within the subpath
Selection Creates a range containing all the select nodes on this subpath
SetPosition Sets the horizontal and vertical position of the subpath's head on the page