Software Developer's Kit - ChemDraw

Send comments on this topic
Tracking Property
See Also 


Member of ChemDraw Control.ObjectTag.

Sets and returns whether tracking is true or false.

Property type

Read-write property


Visual Basic
Public Property Tracking() As Boolean

Return Type



Sets and returns whether placing the mouse over the ObjectTag will cause other objects with matching tags also to become highlighted.


'Shows example of tracking property
 Dim myObjectTag as ChemDrawControl10Ctl.ObjectTag
 Dim myObject as ChemDrawControl10Ctl.Object
 Dim vName as string

 Private Sub Load_ObjectTag_Click()
    If  myObjectTag is Nothing Then
        vMessage = MsgBox(“No ObjectTag is loaded”, vbCritical + vbOKOnly, “Error”)
        vName = “Name_of_ObjectTag”
        ‘Makes an ObjectTag
        myObject.MakeObjectTag vName, myObjectTag, True
        ‘ObjectTag must be visible
        myObjectTag.Visible = True
        ‘Assigns the content of vString to the ObjectTag.StringValue 
        myObjectTag.StringValue = vString
        ‘Tracking = True 
        myObjectTag.Tracking = True 
    End If
End Sub

See Also