Previous Document Next Document

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


NodeRange.RemoveAll

Sub RemoveAll()

Description

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.
VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.