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 ChemDrawCtl.

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

Private Sub cmdChangeSettings_click()
    'this changes LabelFace (which is style) to 4 (LabelFace = 4 is underlined)
     ctlChemDraw.Settings.ApplySettings ctlChemDraw.Settings.LabelFace, 4  
End Sub

See Also