Previous Document Next Document
SubPath.BreakApartAt

Function BreakApartAt([Offset As Double = 0.5], [OffsetType As cdrSegmentOffsetType = cdrRelativeSegmentOffset]) As Node

Member of SubPath

The BreakApartAt method separates a subpath into two subpaths at the specified offset from its beginning.

Parameters
Description
Offset
Specifies the offset distance, in document units
This parameter is optional, and its default value is 0.5.
OffsetType
Specifies the type of offset. This parameter returns cdrSegmentOffsetType.
This parameter is optional, and its default value is cdrRelativeSegmentOffset (1).

The following code example breaks the subpath apart at 1.2" from its beginning:

Sub Test() 
 ActiveShape.Curve.Subpaths(1).BreakApartAt 1.2, 
cdrAbsoluteSegmentOffset 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.