Software Developer's Kit - ChemDraw

Send comments on this topic
Atom Property
See Also 

Description

Member of ChemDraw Control.Caption.

Sets and returns the atom associated with this caption.

Property type

Read-write property

Syntax

Visual Basic
Public Property Atom() As Atom

Return Type

Remarks

This property enables all the atom properties on the atom of the caption.

Example

'Declares a variable caption
 Dim myCaption As ChemDrawControl10Ctl.Caption 

'This example reads data from a caption 
 Private Sub cmdCommand_Click()
     Set myCaption = ctlChemDraw.Captions.Item(1)
     'All the atom properties are enabled
     Text1.text = myCaption.Atom.LabelText 
     myCaption.Atom.AtomNumber = 100  
     myCaption.Atom.ExpandLabelToStructure
 End Sub

See Also