Software Developer's Kit - ChemDraw

Send comments on this topic
CaptionBeingEdited Property
See Also 

Description

Member of ChemDraw Control.Document.

Returns the caption currently being edited interactively, if one exists

Property type

Read-write property

Syntax

Visual Basic
Public Property CaptionBeingEdited() As Caption

Return Type

Example

'Declares variables
 Dim myCaption As ChemDrawControl10Ctl.Caption 
 Dim myDocument As ChemDrawControl11Ctl.Document 
 Dim myApp As ChemDrawControl11Ctl.Application

 Private Sub cmdCommand1_Click()
     Set MyApp = ctlChemDraw.Application
     Set myDocument = myApp.ActiveDocument 
     Set myCaption = myDocument.CaptionBeingEdited
     myCaption.Face = kCDFontStyleBold 
     Text1.text = myCaption.Face 
 End Sub

See Also