Software Developer's Kit - ChemDraw

Send comments on this topic
Captions Property
See Also 

Description

Member of ChemDraw Control.Document.

Returns the captions collection of the document.

Property type

Read-only property

Syntax

Visual Basic
Public Property Captions() As Captions

Return Type

Remarks

Returns the captions collection in the document.

Example

'Declares variables 
 Dim myCaptions As ChemDrawControl11Ctl.Captions
 
Set
myCaptions = ctlChemDraw.Selection.Objects.Documents.Item(1).Captions

 Private Sub cmdCommand_Click()
    'returns the application of the Captions collection
     
Text1.text = MyCaptions.Application 
    'returns the number of Captions in the Captions collection
     Text2.text = MyCaptions.Count
    'sets the Item(1) of the Captions collection   
     
myCaptions.Item(1).CaptionFace = 2
    'returns the face  of the caption 
     Text3.text = MyCaptions.Item(1).CaptionFace
 End Sub

See Also