Software Developer's Kit - ChemDraw

Send comments on this topic
MakeBond Method
See Also 
at1
This refers to the atom at the first end of the bond
at2
This refers to the atom at the second end of the bond

Description

Member of ChemDrawCtl.

Creates a new bond in the ChemDraw control.

Syntax

Visual Basic
Public Function MakeBond( _
   ByVal at1 As Atom, _
   ByVal at2 As Atom _
) As Bond

Parameters

at1
This refers to the atom at the first end of the bond
at2
This refers to the atom at the second end of the bond

Return Type

Example

 Dim myBond As ChemDrawControl11Ctl.Bond
 Private Sub
cmdCommand_Click()
    'creates an object within the control
     
Set MyBond = ChemDrawCtl.MakeBond(myAtom1, myAtom2)
     myBond.selected = True 
     ctlChemDraw.Zoom 1000
 End Sub

See Also