Software Developer's Kit - ChemDraw

Send comments on this topic
Captions Property
See Also 


Member of ChemDrawControl.Objects.

Returns the captions from the objects in the collection

Property type

Read-only property


Visual Basic
Public Property Captions() As Captions

Return Type


'Shows Captions   
 Private Sub cmdShowNumberOfCaptions_Click() 
     Dim myCaption1 as ChemDrawControl10Ctl.Caption
     Dim myCaption2 as ChemDrawControl10Ctl.Caption 
    'Checks if at least two Captions have been drawn
     If ctlChemDraw.Objects.Captions.Count > 2 Then 
         Set MyCaption1 = ChemDrawControlCtl.Objects.Captions.Item(1)
         Set MyCaption2 = ChemDrawControlCtl.Objects.Captions.Item(2)
     End If
 End Sub

See Also