Software Developer's Kit - ChemDraw

Send comments on this topic
MarginWidth Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the amount of space surrounding all atom labels

Property type

Read-write property

Syntax

Visual Basic
Public Property MarginWidth() As Double

Return Type

Double

Remarks

Returns margin width in points.

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 cmdSettings_click() 
   'Sets the Settings.MarginWidth
    vObject.Settings.MarginWidth = Text1.text 

   'Displays all the settings
    Label1.Caption = “Settings Display” + chr$(13) + _ 
                      vObject.Settings.MarginWidth 
 End Sub

See Also