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 ChemDrawControl.Objects.

Given an index, returns one object from the objects collection.

Syntax

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

Parameters

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

Return Type

Object

Example

Private Sub cmdCommand_Click()
    Dim myObjects As ChemDrawControl11Ctl.Objects 
    Set myObjects = ctlChemDraw.Selection.Objects
    myObjects.Item(1) = vbRed
End Sub

See Also