Previous Document Next Document

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


NodeRange.Remove

Sub Remove(Index As Long)

Description

Member of NodeRange

The Remove method removes a specified node from a node range.

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

Parameter
Description
Index
Specifies the node to removed from the node range

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.