Software Developer's Kit - ChemDraw

Send comments on this topic
NumPoints Property
See Also 

Description

Member of ChemDraw Control.Spline.

Sets and returns the number of points used to describe the spline.

Property type

Read-write property

Syntax

Visual Basic
Public Property NumPoints() As Long

Return Type

Long

Remarks

Sets and returns the number of points used to describe the spline.

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 cmdNumPoint_Click()
    Label2.Caption = mySpline.NumPoints
End Sub

See Also