Object Model Reference : Classes : S : Segments : Methods : Segments.Range |
Function Range(IndexArray() As Variant) As SegmentRange
Member of Segments
The Range method returns a SegmentRange object containing all specified segments from a Segments collection.
• |
This method accepts a variable number of arguments. It also accepts arrays.
|
The following VBA example converts segments 2, 3, and 4 of the selected curve to lines.
Sub Test() |
Dim sgr As SegmentRange |
Set sgr = ActiveShape.Curve.Segments.Range(Array(2, 3, 4)) |
sgr.SetType cdrLineSegment |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.