Software Developer's Kit - ChemDraw

Send comments on this topic
DelocalizedBonds Property
See Also 

Description

Member of ChemDraw Control.Spline.

Returns the bonds collection that are to be considered delocalized due to their proximity to this spline.

Property type

Read-only property

Syntax

Visual Basic
Public Property DelocalizedBonds() As Bonds

Return Type

Remarks

Returns the bonds collection that are to be considered delocalized due to their proximity to this spline.

Example

 Private Sub ctlChemDraw_SelectionChanged(ByVal selection _
         As ChemDrawControl10Ctl.IChemDrawSelection)
     If  selection.Splines.Count = 1 Then
         Set MySpline = ctlChemDraw.selection.Objects.Splines.Item(1)
         Label1.Caption = "Object: Spline"
     End If
 End Sub

 Private Sub Command1_Click() 
    'If there are no DelocalizedBonds selected, an error occurs (number:9)
     On Local Error Resume Next 
     Text1.Text = MySpline.DelocalizedBonds(1).ID
     If Err.Number = 9 Then Text1.Text = 0
 End Sub

See Also