Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.Remove |
Sub Remove(Index As Long)
Member of NodeRange
The Remove method removes a specified node from a node range.
• |
Removing a node from a node range doesnt delete the node from its curve.
However, the node is not included in future references to the node range.
|
The following VBA example returns the selected nodes, removes the first and last selected nodes from the range, and deletes the remaining nodes. As a result, all selected nodes (except the first and last ones) 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 |
Copyright 2013 Corel Corporation. All rights reserved.