Software Developer's Kit - ChemDraw

Send comments on this topic
FillType Property
See Also 


Member of ChemDraw Control.Spline.

Sets and returns the fill type of the spline.

Property type

Read-write property


Visual Basic
Public Property FillType() As CDFillType

Return Type


Sets and returns the fill type for the spline.


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"
        cboLoad.AddItem ("kCDFillTypeUnspecified")
        cboLoad.AddItem ("kCDFillTypeNone")
        cboLoad.AddItem ("kCDFillTypeSolid")
        cboLoad.AddItem ("kCDFillTypeShaded")
        cboLoad.AddItem ("kCDFillTypeFaded")
    End If
End Sub

Private Sub Private Sub cboLoad_Click()
    Select Case cboLoad.Text
        Case Is = "kCDFillTypeUnspecified"
             vName = 0
        Case Is = "kCDFillTypeNone"
             vName = 1
        Case Is = "kCDFillTypeSolid"
             vName = 2
        Case Is = "kCDFillTypeShaded"
             vName = 3
        Case Is = "kCDFillTypeFaded"
             vName = 4
    End Select
    mySpline.FillType = vName
End Sub

See Also