Software Developer's Kit - ChemDraw

Send comments on this topic
BondLength Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the default bond length

Property type

Read-write property

Syntax

Visual Basic
Public Property BondLength() As Double

Return Type

Double

Remarks

Bond length is expressed in points.

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.BondLength
     vObject.Settings.BondLength = Text1.text 
    'Displays the settings

     Label1.Caption = “Settings Display” + chr$(13) + _ 
                       vObject.Settings.BondLength
 End Sub

See Also