Previous Document Next Document

Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.Smoothen


NodeRange.Smoothen

Sub Smoothen(Smoothness As Long)

Description

Member of NodeRange

The Smoothen method sets the curve smoothness at each node in a node range.

 
This method produces the same effect as changing the value of the Curve smoothness slider on the property bar.

Parameter
Description
Smoothness
Specifies the level of curve smoothness. Higher values indicate an increased level of smoothness. Values range from 0 to 100.

VBA example

The following VBA example smooths all curves on the active page in the drawing.

Sub Test()
 Dim s As Shape
 For Each s In ActivePage.Shapes
  If s.Type = cdrCurveShape Then
   s.Curve.Nodes.All.Smoothen 20
  End If
 Next s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.