Object Model Reference : Classes : N : NodeRange : Methods : NodeRange.RemoveAll |
Sub RemoveAll()
Member of NodeRange
The RemoveAll method empties a node range by removings all nodes from it.
• |
This method does not delete the nodes; it merely removes them from the node
range.
|
The following VBA example displays the number of nodes in the selected curve. It then empties the node range and displays the number of nodes (zero) now stored in it.
Sub Test() |
Dim nr As NodeRange |
Set nr = ActiveShape.Curve.Nodes.All |
MsgBox "There are " & nr.Count & " nodes in the curve." |
nr.RemoveAll |
MsgBox "Now the range contains " & nr.Count & " nodes." |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.