Software Developer's Kit - ChemDraw

Send comments on this topic
HeadSize Property
See Also 


Member of ChemDraw Control.Spline.

Sets and returns and sets the size of the arrow head for the spline

Property type

Read-write property


Visual Basic
Public Property HeadSize() As Double

Return Type



The arrow head size is the distance measured from the start of the arrow to the end of the line that outlines the arrow head. It does not refer to the arrow head center point.
An arrow with the same value for head size and head center size will look like this arrow
(the end of arrow head is at 90° from the arrow line)

The number returned is expressed in points.


'Declares variable vSpline
 DimvSpline AsChemDrawControl10Ctl.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 cmdHeadCenterSize_click()
    'Returns and sets a number as a value for head center size
     vSpline.HeadSize = Val(txtLoad.Text)
     Text1.text = vSpline.HeadCenterSize
 End Sub

See Also