Software Developer's Kit - ChemDraw

Send comments on this topic
Tolerance Property
See Also 

Description

Member of ChemDrawControl.Preferences.

Sets and returns the tolerance of object selection in pixels.

Property type

Read-write property

Syntax

Visual Basic
Public Property Tolerance() As Integer

Return Type

Integer

Remarks

Sets and returns the tolerance of object selection in pixels, i.e. the size of the highlight box and how close you must get to activate an object by setting the tolerance. The standard setting is 5 pixels. At this setting the highlight box appears on bonds if the pointer is located 5 pixels or less from any point on the bonds.

Example

'Modifies a value of preferences 
 Private Sub cmdApplication_click()
     ctlChemDraw.ActiveDocument.Activate
     Dim myApp As ChemDrawControl11Ctl.Application
     Set myApp = ctlChemDraw.Application
     myApp.Preferences.Tolerance = 10
 End Sub

See Also