Software Developer's Kit - ChemDraw

Send comments on this topic
ActiveDocument Property
See Also 


Member of ChemDraw Control.Application.

Returns the currently active document of the application

Property type

Read-only property


Visual Basic
Public Property ActiveDocument() As Document

Return Type


 Private Sub cmdApplication_click()
     Dim myApp As ChemDrawControl11Ctl.Application
     Set myApp = ctlChemDraw.Application
     'the number of atoms in the current document will be shown
     cmdApplication.Caption = myApp.ActiveDocument.Atoms.Count
 End Sub

See Also