Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw control.DataTypes.

Returns the number of DataTypes in the DataTypes collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Integer

Return Type

Integer

Remarks

Returns the number of data types in a collection of data types.

Example

'Declares variables 
 Dim myDataTypes As ChemDrawControl11Ctl.DataTypes
 Set myDataTypes = ctlChemDraw.Objects.DataTypes

 Private Sub cmdDataTypes_Click()
    'returns the number of DataTypes in the DataTypes collection
     Text1.text = MyDataTypes.Count 
    'returns extension of Item(1)of the DataTypes collection 
     Text2.text = MyDataTypes.Item(1).Extension
 End Sub

See Also