Software Developer's Kit - ChemDraw

Send comments on this topic
Translation Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns the translation restriction on the atom

Property type

Read-write property

Syntax

Visual Basic
Public Property Translation() As CDTranslation

Return Type

Remarks

The translation property specifies what is required to match in the structure query and possible database hits in a Markush DARC query. It provides restrictions on the type of match. Available values are: any, broad, equal or narrow.

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 cmdTranslation_Click() 
      myAtom.Translation = kCDTranslationNarrow  
      Text2.text = myAtom.Translation  
 End Sub

See Also