Software Developer's Kit - ChemDraw

Send comments on this topic
Constraints Property
See Also 

Description

Member of ChemDrawControl.Objects.

Returns the constraints from the objects in the collection

Property type

Read-only property

Syntax

Visual Basic
Public Property Constraints() As Constraints

Return Type

Example

'Shows Constraints   
 Private Sub cmdShowNumberOfConstraints_Click() 
     Dim myConstraint1 as ChemDrawControl10Ctl.Constraint
     Dim myConstraint2 as ChemDrawControl10Ctl.Constraint 
    'Checks if at least two Constraints have been drawn
     If ctlChemDraw.Objects.Constraints.Count > 2 Then 
         Set MyConstraint1 = ChemDrawControlCtl.Objects.Constraints.Item(1)
         Set MyConstraint2 = ChemDrawControlCtl.Objects.Constraints.Item(2)
     End If
 End Sub

See Also