Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.DataObjectFiles.

Returns the number of data object files in the collection of DataObjectFiles.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of data object files in 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