Software Developer's Kit - ChemDraw

Send comments on this topic
HashSpacing Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the spacing between hash lines

Property type

Read-write property

Syntax

Visual Basic
Public Property HashSpacing() As Double

Return Type

Double

Remarks

Sets and returns the spacing between the hashed lines used when wedged hashed bonds, hashed bonds, dashed bonds, dashed arrows or dashed curves are used. Hash spacing is expressed 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.HashSpacing
     vObject.Settings.HashSpacing = Text1.text 

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

See Also