Software Developer's Kit - ChemDraw

Send comments on this topic
DefaultToolWhenOpeningDocuments Property
See Also 

Description

Member of ChemDrawControl.Preferences.

Sets and returns the tool that will be selected when documents are opened.

Property type

Read-write property

Syntax

Visual Basic
Public Property DefaultToolWhenOpeningDocuments() As CDPrefToolEnum

Return Type

Remarks

Sets and returns the tool that will be selected by default when documents are opened.

Example

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

See Also