Software Developer's Kit - ChemDraw

Send comments on this topic
HeadWidth Property
See Also 


Member of ChemDraw Control.Spline.

Sets and returns the width of the arrow head for the spline.

Property type

Read-write property


Visual Basic
Public Property HeadWidth() As Double

Return Type



The width of the arrow head is the distance measured from the arrow line to the outline of the arrow head, at 90°.

In arrows with Shaft Spacing > 0, head width does not change. However, the height of the rectangle bounding the arrow changes proportionally to head width. 

The number returned is expressed in points.


'Declares variable vSpline
 Dim vSpline As ChemDrawControl10Ctl.Spline
'Checks that there is an Spline loaded in the variable

 If  Selection.Splines.Count < 1 Then
     Exit Sub
 End If

 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As ChemDrawControl10Ctl.IChemDrawSelection)
     If  selection.Splines.Count = 1 Then
         Set MySpline = ctlChemDraw.selection.Objects.Splines.Item(1)
         Label1.Caption = "Object: Spline"
     End If
 End Sub
 Private Sub cmdHeadWidth_click()
    'Returns and sets a number, as a value for Head Width
     Text1.text = vSpline.HeadWidth
     vSpline.HeadWidth = Val(txtLoad.Text)

 End Sub  

See Also