Software Developer's Kit - ChemDraw

Send comments on this topic
LabelText Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns the text of the atom label. 

Property type

Read-write property

Syntax

Visual Basic
Public Property LabelText() As String

Return Type

String

Remarks

Identify atoms and substructures by their chemical symbols and formulas.

Example

'Declares variables
 Dim myAtom As ChemDrawControl10Ctl.Atom
'Checks that there is an atom loaded in the variable
 If  Selection.Atoms.Count < 1 Then
     Exit Sub
 End If

'Reads and sets this property
 Private Sub cmdLabelText_Click() 
     myAtom.LabelText = text1.text
     Text2.text = myAtom.LabelText  
 End Sub

See Also