Software Developer's Kit - ChemDraw

Send comments on this topic
HeadCenterSize Property
See Also 

Description

Member of ChemDraw Control.Arrow

Sets and returns the distance from the start of the arrow to the center of this arrow head.

Property type

Read-write property

Syntax

Visual Basic
Public Property HeadCenterSize() As Double

Return Type

Double

Remarks

Increasing this value will increase the distance from the arrow start to the center of the arrow head.    

Arrow A   

Arrow B

In Arrow B the head center size has decreased slightly. The arrow head remains unchanged, except for the center point which has moved nearer to the start of the arrow.
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. Points are IntermCoords, equivalent to CurCoords multiplied by 20. CurCoords are integer based coordinates representing screen pixels. 

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