Software Developer's Kit - ChemDraw

Send comments on this topic
Constraints Property
See Also 

Description

Member of ChemDraw Control.selection

Returns the constraints that are selected

Property type

Read-only property

Syntax

Visual Basic
Public Property Constraints() As Constraints

Return Type

Remarks

Returns the constraints collection in the selection.

Example

'Uses an object from the selection  
 Private Sub 
cmdCommand_Click()
     If  Selection.Constraints.Count < 1 Then
         Exit Sub
     End If    
     Set myConstraint = selection.Constraints.Item(1)
 End Sub 

See Also