Software Developer's Kit - ChemDraw

Send comments on this topic
HeadWidth Property
See Also 

Description

Member of ChemDraw Control.Arrow

Sets and returns the width of the arrowhead for this arrow

Property type

Read-write property

Syntax

Visual Basic
Public Property HeadWidth() As Double

Return Type

Double

Remarks

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.

Example

'Declares variable vArrow
 Dim vArrow As ChemDrawControl10Ctl.Arrow
'Checks that there is an arrow loaded in the variable

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

 Private Sub cmdHeadWidth_click()
    'Returns and sets a number, as a value for Head Width
     Text1.text = vArrow.HeadWidth

     vArrow.HeadWidth = 15
 End Sub  

See Also