Software Developer's Kit - ChemDraw

Send comments on this topic
SelectTool Method
See Also 
toolType
Indicates what tool will be selected.
subType
Indicates what sub type to select within the main tool option.
Example, arrow tool, sub type = 1, will select the first arrow of the arrows.

Description

Member of ChemDrawCtl.

Select the given tool.

Syntax

Visual Basic
Public Sub SelectTool( _
   ByVal toolType As CDToolType, _
   ByVal subType As Integer _
) 

Parameters

toolType
ValueDescription
TypeToolPopup 
TypeToolArrow Arrow tool
TypeToolAtom Atom tool
TypeToolBond Bond tool
TypeToolChain Chain tool
TypeToolDelete Delete tool
TypeToolLasso Lasso tool
TypeToolRing Ring tool
TypeToolSpline Spline tool
TypeToolTemplate Template tool
TypeToolText Text tool
TypeToolAltGroup AltGroup tool (query tool)
TypeToolRxnMap Reaction atom map tool
TypeToolFreeSite Free Site tool (query tool)
Indicates what tool will be selected.
subType
Indicates what sub type to select within the main tool option.
Example, arrow tool, sub type = 1, will select the first arrow of the arrows.

Example

'Selects Arrow tool, with Arrow sub type 1 
 
Private Sub cmdTool_Click()
     ctlChemDraw.SelectTool TypeToolArrow, 1
 End Sub

See Also