Software Developer's Kit - ChemDraw

Send comments on this topic
Captions Property
See Also 

Description

Member of ChemDraw Control.Cell.

Returns the captions collection of this cell.

Property type

Read-only property

Syntax

Visual Basic
Public Property Captions() As Captions

Return Type

Example

'Declares variables
 Dim myTable As ChemDrawControl11Ctl.Table
 Set myCell = ctlChemDraw.Selection.Objects.Cell

 Private Sub cmdCommand_Click()
    'Checks that there is a Table loaded in the variable
     If  Selection.Tables.Count < 1 Then
         Exit Sub
     End If
     Set myCell = myTable.Cells.Item(1) 
    'returns the collection of objects in this cell
     cmdCommand.Caption = myCell.Captions.Count
 End Sub

See Also