Previous Document Next Document

Object Model Reference : Classes : S : Segments : Methods : Segments.Range


Segments.Range

Function Range(IndexArray() As Variant) As SegmentRange

Description

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.

Parameter
Description
IndexArray
Represents index numbers that identify specific segments

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.