Software Developer's Kit - ChemDraw

Send comments on this topic
NodeType Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns the node type for this atom.

Property type

Read-only property

Syntax

Visual Basic
Public Property NodeType() As CDNodeType

Return Type

Remarks

This is a Read Only, enumerated property. For example, when an atom has IsAttachment = True, the NodeType will equal kCDNodeTypeExternalConnectionPoint.

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 cmdNodeType_Click() 
      myAtom.NodeType = val(text1.text) 
      Text2.text = myAtom.NodeType  
 End Sub

See Also