Software Developer's Kit - ChemDraw

Send comments on this topic
AttachChar1 Property
See Also 

Description

Member of ChemDraw Control.Bond.

Sets and returns the offset within the label of the atom on the first end of this bond.

Property type

Read-write property

Syntax

Visual Basic
Public Property AttachChar1() As Long

Return Type

Long

Remarks

Sets and returns the offset within the label of the atom on the first end of this bond, to which this bond is attached (zero-based) present in the ChemDraw application.

Example

'In the form general section (or as public in the module)
 Dim myBond As ChemDrawControl10Ctl.Bond
'---------------------------------------------------------------------------------
 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As _ 
         ChemDrawControl10Ctl.IChemDrawSelection)  
     'Checks that there is a bond loaded in the variable 
     If  Selection.Bonds.Count < 1 Then 
         Exit Sub
     End If
 End Sub
'---------------------------------------------------------------------------------
 Private Sub Command1_Click()
     Text1.Text= myBond.AttachChar1
     myBond.AttachChar1 = Val (Text2.Text)
 End Sub

See Also