Previous Document Next Document

Object Model Reference : Classes : C : Curve : Methods : Curve.Selection


Curve.Selection

Function Selection() As NodeRange

Description

Member of Curve

The Selection method returns a node range that contains all the preselected nodes of a curve.

 
This method can be used only when the Shape tool is the active tool.
VBA example

The following VBA example selects an object in the active document and determines whether the object is a curve object. If it is a curve, it evaluates the pre-selected nodes in the object’s selection. If the node type in the selection is mixed nodes, it displays a message in a message box.

Sub CurveSelection()
 Dim s As Shape
 Dim nr As NodeRange
 Set s = ActiveSelection.Shapes(1)
 If s.Type = cdrCurveShape Then
  Set nr = s.Curve.Selection
  If nr.type=cdrMixedNodes then
   MsgBox "The current curve selection has mixed nodes."
  End If
 End If
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.