Software Developer's Kit - ChemDraw

Send comments on this topic
Settings Property
See Also 

Description

Member of ChemDraw Control.StoichiometryGrid.

Returns the settings for this StoichiometryGrid.

Property type

Read-only property

Syntax

Visual Basic
Public Property Settings() As Settings

Return Type

Remarks

This property returns a reference to the object settings associated with this object. 

Document 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

'Declares variable vObject
'Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1 Then
     Exit Sub
 End If

 Private Sub cmdSettings_Click()
    'To read the current chain angle and bond length associated with vObject
     Text1.Text = vObject.Settings.ChainAngle
     Text2.Text = vObject.Settings.BondLength
    'To set chain angle for vObject
     vObject.Settings.ChainAngle = Text3.text 
 End Sub

See Also