Software Developer's Kit - ChemDraw

Send comments on this topic
LineWidth Property
See Also 

Description

Member of ChemDraw Control.Settings

Sets and returns the width of any line segment

Property type

Read-write property

Syntax

Visual Basic
Public Property LineWidth() As Double

Return Type

Double

Remarks

Sets and returns the line width of all bonds, lines and arrow heads. The value for head size 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.LineWidth
     vObject.Settings.LineWidth = Text1.text 

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

See Also