Software Developer's Kit - ChemDraw

Send comments on this topic
LineType Property
See Also 

Description

Member of ChemDraw Control.Spline.

Sets and returns the line type of the spline

Property type

Read-write property

Syntax

Visual Basic
Public Property LineType() As CDLineType

Return Type

Remarks

Line types for splines are:

kCDLineTypeBold          

kCDLineTypeDashed     

kCDLineTypeSolid         

kCDLineTypeWavy        

Example

Private Sub ctlChemDraw_SelectionChanged(ByVal selection As ChemDrawControl10Ctl.IChemDrawSelection)
    If  selection.Splines.Count = 1 Then
        Set MySpline = ctlChemDraw.selection.Objects.Splines.Item(1)
        Label1.Caption = "Object: Spline"
    End If
End Sub
Private Sub cmdLineType_click()
    'Example 1: Sets the Spline Line Type as dashed
     vSpline.LineType = kCDLineTypeDashed
    'Example 2: Sets the Spline Line Type as solid
    
vSpline.LineType = kCDLineTypeSolid If
 End Sub

See Also