Object Model Reference : Classes : S : SubPath : Methods : SubPath.FindSegmentOffset |
Function FindSegmentOffset(AbsoluteOffset As Double, Segment As Segment, ParamOffset As Double, [Remainder As Double]) As Boolean
Member of SubPath
The FindSegmentOffset method finds the offset of a specified point on a segment subpath.
The following VBA example finds the segment that contains a point 3" from the beginning of the first subpath, and it then converts the segment to a line.
Sub Test() |
Dim seg As Segment |
Dim t As Double |
If ActiveShape.Curve.Subpaths(1).FindSegmentOffset(3, seg, t) Then |
seg.Type = cdrLineSegment |
Else |
MsgBox "The first subpath is less than 3"" long." |
End If |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.