Software Developer's Kit - ChemDraw

Send comments on this topic
ActiveDocument Property
See Also 

Description

Member of ChemDraw Control.Application.

Returns the currently active document of the application

Property type

Read-only property

Syntax

Visual Basic
Public Property ActiveDocument() As Document

Return Type

Example

'Application
 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