Software Developer's Kit - ChemDraw

Send comments on this topic
Count Property
See Also 

Description

Member of ChemDraw Control.Documents.

Returns the number of documents in the documents collection.

Property type

Read-only property

Syntax

Visual Basic
Public Property Count() As Long

Return Type

Long

Remarks

Returns the number of documents in a collection of documents.

Example

'Declares variables 
 Dim myDocuments As ChemDrawControl11Ctl.Documents
 Set myDocuments = ctlChemDraw.Selection.Objects.Documents

 Private Sub cmdDocuments_Click()
    'returns the number of Documents in the Documents collection
     Text1.text = MyDocuments.Count 
 End Sub

See Also