Previous Document Next Document
NodeRange.Remove

Sub Remove(Index As Long)

Member of NodeRange

The Remove method takes a specified node out of a NodeRange.

Removing a node doesn’t delete the node from a curve. The node is not included in future references to the range.

Parameters
Description
Index
Specifies the node that is removed from the node range

The following code example gets the selected nodes, removes the first and last selected node from the range, and deletes the remaining nodes. As a result, all of the selected nodes (except the first and last) are deleted from the curve.

Sub Test() 
 Dim nr As NodeRange 
 Set nr = ActiveShape.Curve.Selection 
 nr.Remove 1 
 nr.Remove nr.Count 
 nr.Delete 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.