Software Developer's Kit - ChemDraw

Send comments on this topic
OpenFormat Property
See Also 

Description

Member of ChemDrawControl.Preferences.

Sets and returns the file format that the Open dialog will default to.

Property type

Read-write property

Syntax

Visual Basic
Public Property OpenFormat() As CDFormat

Return Type

Remarks

Sets and returns the file format that the Open dialog will default to, if it is set to default to a specific file format.

Example

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

See Also