Software Developer's Kit - ChemDraw

Send comments on this topic
ApplySettings Method
See Also 
dataType

Indicates the type of data that will be changed.

newVal

The value that the data type will receive.

Description

Member of ChemDraw Control.Settings.

This method applies the settings from the ChemDraw application

Syntax

Visual Basic
Public Sub ApplySettings( _
   ByVal dataType As Variant, _
   ByVal newVal As Variant _
) 

Parameters

dataType

Indicates the type of data that will be changed.

newVal

The value that the data type will receive.

Remarks

Changes all the settings at once, based on a file.

Example

'Declares variable vObject
 Dim vObject As ChemDrawControl10Ctl.Object
'Checks that there is an Object loaded the variable
 If  Selection.Object.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdChangeSettings_click()
    'To change a setting - use ActiveX Control.Settings 
    'this changes LabelFace (which is style) to 4 (LabelFace = 4 is underlined)
     ctlChemDraw.Settings.ApplySettings ctlChemDraw.Settings.LabelFace, 4  
 End Sub

See Also