Object Model Reference : Classes : C : Curve : Methods : Curve.Selection |
Function Selection() As NodeRange
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.
|
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 objects 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 |
Copyright 2013 Corel Corporation. All rights reserved.