Software Developer's Kit - ChemDraw

Send comments on this topic
ArrowHeadType Property
See Also 

Description

Member of ChemDraw Control.Spline.

Sets and returns type of arrow head for the spline.

Property type

Read-write property

Syntax

Visual Basic
Public Property ArrowHeadType() As CDArrowHeadType

Return Type

Remarks

Sets and returns the type of arrow head, if the spline has an arrow head at the start or at the end of the spline.

Example

'Declares variable vSpline
 Dim vSpline AsChemDrawControl10Ctl.Spline

 Private Sub ctlChemDraw_SelectionChanged(ByVal selection As ChemDrawControl10Ctl.IChemDrawSelection)
     If  selection.Spline.Count = 1 Then
         Set MySpline = ctlChemDraw.selection.Objects.Splines.Item(1)
         Label1.Caption = "Object: Spline"
     End If
 End Sub

 Private Sub cmdSplineHeadType_click()
    'Example 1: Sets the Spline head as a solid head
     vSpline.SplineHeadType = kCDSplineHeadTypeSolid
    'Example 2: Sets the Spline head as a hollow head
     vSpline.SplineHeadType = kCDSplineHeadTypeHollow
 End Sub

See Also