Software Developer's Kit - ChemDraw

Send comments on this topic
Highlighted Property
See Also 


Member of ChemDraw Control.Spline.

Sets and returns whether this Spline is highlighted or not.

Property type

Read-write property


Visual Basic
Public Property Highlighted() As Boolean

Return Type




Highlighting is a display attribute that emphasizes a particular object. The highlight box appears on an object if the pointer is located 5 pixels (default value) or less from any point on that object. The default value is modified using preferences.tolerance.

The diagram on the left, shows when an object being drawn reaches a certain proximity to another object. The diagram on the right shows an object highlighted when the mouse passes over.


'Declares variable vobject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.Object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1 Then
     Exit Sub
 End If

'Toggles between highlighted and not highlighted
 Private Sub ctlChemDraw_DataChanged()
     If  vObject.HightLighted = True then
         Text1.Text = "Object is Highlighted"
         Text1.Text = "Object is not Highlighted"
     End If
 End Sub 

See Also