Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.ReactionSchemes

Returns the number of ReactionSchemes in the ReactionSchemes collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of ReactionSchemes in a collection of ReactionSchemes.

Example

'Declares and loads variable
 Dim myReactionSchemes As ChemDrawControl11Ctl.ReactionSchemes
 Set myReactionSchemes = ctlChemDraw.Selection.Objects.ReactionSchemes

 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