|   |   | Object Model Reference : Classes : S : SegmentRange : Methods : SegmentRange.SetType | 
Sub SetType(Type As cdrSegmentType)
Member of SegmentRange
The SetType method sets the type of segment for all segments in a segment range.
| 
Parameter
 | 
Description
 | 
| 
Type
 | 
Specifies the type of segment for all segments in a segment range. The Type parameter accepts a value of cdrSegmentType.
 | 
The following VBA example converts all segments in the selected shape to curve segments and changes the type of all of its nodes to smooth.
| Sub Test() | 
|  With ActiveShape.Curve | 
|   .Segments.All.SetType cdrCurveSegment | 
|   .Nodes.All.SetType cdrSmoothNode | 
|  End With | 
| End Sub | 
|   |   |   | 
Copyright 2013 Corel Corporation. All rights reserved.