Software Developer's Kit - ChemDraw

Send comments on this topic
NoGoType Property
See Also 

Description

Member of ChemDraw Control.Arrow

Sets and returns the type of this no-go arrow

Property type

Read-write property

Syntax

Visual Basic
Public Property NoGoType() As CDNoGoType

Return Type

Remarks

A NoGo arrow is an arrow either crossed-through or hashed-out. The available values for NoGoType property are:

kCDNoGoTypeCross            

kCDNoGoTypeHash             

kCDNoGoTypeNone             

kCDNoGoTypeUnspecified     

 

The size of the cross or hash is directly proportional to HeadWidth.

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 cmdNoGoType_click()
    'Example 1: Sets the Arrow NoGo Type as hashed
     vArrow.NoGoType = kCDNoGoHash
    'Example 2: Sets the Arrow NoGo Type as crossed
     vArrow.NoGoType = kCDNoGoTypeCross 
 End Sub 

See Also