Software Developer's Kit - ChemDraw

Send comments on this topic
Splines Collection
See Also  Members 

Description

Member of ChemDraw Control.

For a list of all members defined for this collection, see Splines Members.

ChemDraw Splines Collection contains all of the spline objects in the document. 

Object Model

Remarks

Splines is a collection containing all of the spline objects in the ChemDraw document. If mySplines is a splines collection object:

MySplines.Application   returns the application associated with the splines collection
MySplines.Count          returns the number of splines in the collection
MySplines.Item(i)        given an index, references one spline in particular
MySplines.Parent         returns the parent of the splines collection

Using mySplines.Item(i) all the spline properties are enabled for mySplines(i). This index starts with 1.

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