Software Developer's Kit - ChemDraw

Send comments on this topic
HeadSize Property
See Also 

Description

Member of ChemDraw Control.Arrow

Sets and returns and sets the size of the arrowhead for this arrow

Property type

Read-write property

Syntax

Visual Basic
Public Property HeadSize() As Double

Return Type

Double

Remarks

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.

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 cmdHeadCenterSize_click()
    'Returns and sets a number as a value for head center size
     vArrow.HeadCenterSize = 12

     Text1.text = vArrow.HeadCenterSize

 End Sub

 

See Also