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.Geometries.

Given an index, returns one geometry from the geometries collection

Syntax

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

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 geometry of a collection of geometries, and all the geometry properties are enabled.

Example

'Declares variables 
 Dim myGeometries As ChemDrawControl11Ctl.Geometries
 Set myGeometries = ctlChemDraw.Selection.Objects.Geometries

 Private Sub cmdGeometriess_Click()
    'returns the number of Geometries in the Geometries collection
     Text1.text = MyGeometries.Count 
    'returns the bottom of Item(1) of the Geometries collection 
     Text2.text = MyGeometries.Item(1).Bottom
 End Sub

See Also