Software Developer's Kit - ChemDraw

Send comments on this topic
Item Method
See Also 
index

The location of an object in a collection, counted from the top, starting with 1.

Description

Member of ChemDraw Control.ReactionSchemes

Given an index, returns one ReactionScheme from the collection.

Syntax

Visual Basic
Public Function Item( _
   ByVal index As Long _
) As ReactionScheme

Parameters

index

The location of an object in a collection, counted from the top, starting with 1.

Return Type

Remarks

Working with this property, allows referencing any given ReactionScheme of a collection of ReactionSchemes, and all the reaction scheme properties are available.

myReactionSchemes.Item(i).Arrows:        returns the arrows collection in the reaction scheme(i)
myReactionSchemes.Item(i).Plusses:       returns the plusses of the reaction scheme(i)

Example

'Declares and loads variable
 Dim myReactionSchemes As ChemDrawControl11Ctl.ReactionSchemes
 Set myReactionSchemes = ctlChemDraw.ReactionSchemes.Item(1)

 Private Sub cmdReactionSchemes_Click()
    'returns the application of the ReactionSchemes collection
     Text1.text = MyReactionSchemes.Application
    'returns the number of ReactionSchemes in the ReactionSchemes collection
     Text2.text = MyReactionSchemes.Count 
    'sets the Item(1) of the ReactionSchemes collection 
     myReactionSchemes.Item(1).Arrows.Color = vbRed
    'returns element number of Item(1)of the ReactionSchemes collection 
     Text3.text = MyReactionSchemes.Item(1).Arrows.Count
 End Sub

See Also