Software Developer's Kit - ChemDraw

Send comments on this topic
Settings Property
See Also 

Description

Member of ChemDrawCtl.

Returns the settings object of the control.

Property type

Read-only property

Syntax

Visual Basic
Public Property Settings() As Settings

Return Type

Remarks

Settings shows the general definitions for the document. Settings can be read from a specific file, containing a template, which can be set for a particular type of publishing. Settings enable drawing the objects following a certain style. For example, if chain angle is set to 120 degrees, the bonds will automatically be drawn at this angle.

Example

 Private Sub cmdChemDrawCtl.Settings_click()  
 'Sets the ChemDrawCtl.Settings.ChainAngle
 ChemDrawCtl.Settings.ChainAngle = Text1.text 

 'Displays all the ChemDrawCtl.Settings 
 Label1.Caption = “ChemDrawCtl.Settings Display” + chr$(13) + _
     Format(vObject.ChemDrawCtl.Settings.BackgroundColor "&h")+ Chr$(13) + _ 
     ChemDrawCtl.Settings.BoldWidth + Chr$(13) + _
     ChemDrawCtl.Settings.BondLength + Chr$(13) + _
     ChemDrawCtl.Settings.BondSpacing + Chr$(13) + _
     ChemDrawCtl.Settings.CaptionFace + Chr$(13) + _
     ChemDrawCtl.Settings.CaptionFont + Chr$(13) + _   
     ChemDrawCtl.Settings.CaptionJustification + Chr$(13) + _ 
     ChemDrawCtl.Settings.CaptionLineHeight + Chr$(13) + _ 
     ChemDrawCtl.Settings.CaptionSize + Chr$(13) + _
     ChemDrawCtl.Settings.ChainAngle + Chr$(13) + _ 
     ChemDrawCtl.Settings.HashSpacing + Chr$(13) + _ 
     ChemDrawCtl.Settings.HideImplicitHydrogens + Chr$(13) + _
     ChemDrawCtl.Settings.ShowAtomEnhancedStereo + Chr$(13) + _
     ChemDrawCtl.Settings.InterpretChemically + Chr$(13) + _
     Format(ChemDrawCtl.Settings.Color, "&h") + Chr$(13) + _
     ChemDrawCtl.Settings.LabelFace + Chr$(13) + _
     ChemDrawCtl.Settings.LabelFont + Chr$(13) + _
     ChemDrawCtl.Settings.LabelJustification + Chr$(13) + _
     ChemDrawCtl.Settings.LabelLineHeight + Chr$(13) + _
     ChemDrawCtl.Settings.LabelSize + Chr$(13) + _
     ChemDrawCtl.Settings.LineWidth + Chr$(13) + _
     ChemDrawCtl.Settings.MarginWidth + Chr$(13) + _
     ChemDrawCtl.Settings.ShowAtomNumber + Chr$(13) + _
     ChemDrawCtl.Settings.ShowAtomQuery + Chr$(13) + _
     ChemDrawCtl.Settings.ShowAtomStereo + Chr$(13) + _
     ChemDrawCtl.Settings.ShowBondQuery + Chr$(13) + _
     ChemDrawCtl.Settings.ShowBondRxn + Chr$(13) + _
     ChemDrawCtl.Settings.ShowBondStereo + Chr$(13) + _
     ChemDrawCtl.Settings.ShowNonTerminalCarbonLabels + Chr$(13) + _
     ChemDrawCtl.Settings.ShowTerminalCarbonLabels 

 End Sub

See Also