Software Developer's Kit - ChemDraw

Send comments on this topic
BondSpacing Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the default bond spacing.

Property type

Read-write property

Syntax

Visual Basic
Public Property BondSpacing() As Double

Return Type

Double

Remarks

Sets and returns the distance between lines in double or triple bonds. The distance is set either as the percentage of the length of the bond (1 to 100) or as an absolute value in the units specified for your document.

Example

'Declares variable vObject
 Dim vObject As ChemDrawControl10Ctl.Object
'Checks that there is an Object loaded the variable
 If  Selection.Object.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdSettings_click() 
    'Sets the Settings.BondSpacing
     vObject.Settings.BondSpacing = Text1.text 

    'Displays all the settings
     Label1.Caption = “Settings Display” + chr$(13) + _ 
                       vObject.Settings.BondSpacing 
 End Sub

See Also