Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Default member of ChemDraw Control.Splines

Returns the number of splines in the splines collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of splines in the collection of splines.

Example

'Declares variables 
 Dim mySplines As ChemDrawControl11Ctl.Splines
 Set mySplines = ctlChemDraw.Selection.Objects.Splines

 Private Sub cmdSplines_Click()
    'returns the application of the Splines collection
     Text1.text = MySplines.Application
    'returns the number of Splines in the Splines collection
     Text2.text = MySplines.Count 
    'sets the Item(1) of the Splines collection 
     mySplines.Item(1).HeadSize = 12
    'returns arrow head type of Item(1)of the Splines collection 
     Text3.text = MySplines.Item(1).ArrowHeadType
 End Sub

See Also