Previous Document Next Document

Object Model Reference : Classes : S : SegmentRange : Methods : SegmentRange.SetType


SegmentRange.SetType

Sub SetType(Type As cdrSegmentType)

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.