Software Developer's Kit - ChemDraw

Send comments on this topic
Item Property
See Also 
index

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

Description

Member of ChemDraw Control.DataObjectFiles.

Given an index, returns one data object file from the DataObjectFiles collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Item( _
   ByVal index As Long _
) As String

Parameters

index

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

Return Type

String

Remarks

Working with this property, allows referencing any data object file of the collection.

Example

'Declares variables 
 Dim myDataObjectFiles As ChemDrawControl11Ctl.DataObjectFiles
 Set myDataObjectFiles = ctlChemDraw.Selection.Objects.DataObjectFiles

 Private Sub cmdDataObjectFiles_Click()
    'returns the number of DataObjectFiles in the collection
     Text1.text = MyDataObjectFiles.Count 
    'returns extension of Item(1) of the DataObjectFiles collection 
     Text2.text = MyDataObjectFiles.Item(1).Extension
 End Sub

See Also